Beispiel #1
0
        public bool Equals(CourseNode other)
        {
            if (other == null)
            {
                return(false);
            }

            bool result = CourseId.Equals(other.CourseId, StringComparison.Ordinal);

            return(result);
        }
Beispiel #2
0
 public override bool Equals(object obj)
 {
     return(obj is Block block &&
            BlockType == block.BlockType &&
            CourseId.Equals(block.CourseId) &&
            Day == block.Day &&
            StartHour == block.StartHour &&
            Duration == block.Duration &&
            Room == block.Room &&
            Teacher == block.Teacher);
 }
Beispiel #3
0
    public bool Equals(CourseTrainer other)
{
    if (ReferenceEquals(other, null))
    {
        return(false);
    }
    if (ReferenceEquals(this, other))
    {
        return(true);
    }
    return(CourseId.Equals(other.CourseId) && TrainerId.Equals(other.TrainerId));
}