public bool Equals(CourseNode other) { if (other == null) { return(false); } bool result = CourseId.Equals(other.CourseId, StringComparison.Ordinal); return(result); }
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); }
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)); }