// // Company copyright tag.List // // stubbfel // 25.07.2013 //---------------------------------------------------------------------- namespace CampusAppWPortalLib8.Model.Utility { using System; /// Course model. /// Stubbfel, 10.09.2013. public class CourseModel : IEquatable { #region Constructor /// Initializes a new instance of the CourseModel class. /// Stubbfel, 10.09.2013. /// The course number. /// The course text. public CourseModel(string courseNumber, string courseText) { this.CourseNumber = courseNumber; this.CourseText = courseText; } #endregion #region Property /// Gets or sets the course number. /// The course number. public string CourseNumber { get; set; } /// Gets or sets the course text. /// The course text. public string CourseText { get; set; } #endregion #region Method /// Tests if this CourseModel is considered equal to another. /// Stubbfel, 10.09.2013. /// The course model to compare to this object. /// true if the objects are considered equal, false if they are not. public bool Equals(CourseModel other) { if (this.CourseNumber.Equals(other.CourseNumber)) { return true; } return false; } #endregion } }