public bool Equals(WorkHours obj)
 {
     if (object.ReferenceEquals(obj, null))
     {
         return(false);
     }
     return(WorkHours.Equals(this, obj));
 }
        public static bool Equals(WorkHours obj1, WorkHours obj2)
        {
            if (object.ReferenceEquals(obj1, null) && object.ReferenceEquals(obj2, null))
            {
                return(true);
            }

            if (object.ReferenceEquals(obj1, null) || object.ReferenceEquals(obj2, null))
            {
                return(false);
            }

            return(obj1.Open == obj2.Open &&
                   obj1.Close == obj2.Close);
        }
 public static bool operator !=(WorkHours obj1, WorkHours obj2)
 {
     return(!WorkHours.Equals(obj1, obj2));
 }