示例#1
0
        public override bool Equals(object obj)
        {
            if (ReferenceEquals(null, obj))
            {
                return(false);
            }
            if (ReferenceEquals(this, obj))
            {
                return(true);
            }
            if (obj.GetType() != this.GetType())
            {
                return(false);
            }

            WorkedTime other = (WorkedTime)obj;

            return(WorkedTimeId == other.WorkedTimeId &&
                   EmployeeId == other.EmployeeId &&
                   Date.Equals(other.Date) &&
                   ArrivalTime.Equals(other.ArrivalTime) &&
                   LeavingTime.Equals(other.LeavingTime) &&
                   Deleted == other.Deleted);
        }
示例#2
0
 protected bool Equals(Connection other)
 {
     return(Equals(Source, other.Source) && Equals(Target, other.Target) && LeavingTime.Equals(other.LeavingTime) && ArrivalTime.Equals(other.ArrivalTime));
 }