Ejemplo n.º 1
0
        /// <summary>
        /// Determines whether the specified <see cref="System.Object" />, is equal to this instance.
        /// </summary>
        /// <param name="obj">The <see cref="System.Object" /> to compare with this instance.</param>
        /// <returns>
        ///   <c>true</c> if the specified <see cref="System.Object" /> is equal to this instance; otherwise, <c>false</c>.
        /// </returns>
        public override bool Equals(object obj)
        {
            if (obj == null || !GetType().Equals(obj.GetType()))
            {
                return(false);
            }
            else
            {
                StudentList s = (StudentList)obj;

                return(Students.SequenceEqual(s.Students));
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Class"/> class.
 /// </summary>
 public Class()
 {
     Students = new StudentList();
     Scale    = new TraditionalGradeScale();
 }