예제 #1
0
 private static bool FieldsEqual(TSCVenues a, TSCVenues b)
 {
     return(
         (a.VenueKey == b.VenueKey) &&
         (a.VenueName == b.VenueName) &&
         (a.VenueEmail == b.VenueEmail) &&
         (a.VenueAddress == b.VenueAddress) &&
         (a.VenueContact == b.VenueContact) &&
         (a.VenuePhone == b.VenuePhone) &&
         (true)
         );
 }
예제 #2
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            TSCVenues a = obj as TSCVenues;

            if (a == null)
            {
                return(false);
            }
            return(FieldsEqual(this, a));
        }