예제 #1
0
 public bool Equals(TSCEvents a)
 {
     if ((object)a == null)
     {
         return(false);
     }
     return(FieldsEqual(this, a));
 }
예제 #2
0
 public bool KeyEquals(TSCEvents a)
 {
     if ((object)a == null)
     {
         return(false);
     }
     return(
         (a.EventKey.Trim().ToLower() == EventKey.Trim().ToLower())
         );
 }
예제 #3
0
 public TSCEvents(TSCEvents tscevents)
     : this()
 {
     EventKey     = new string(tscevents.EventKey.ToArray());
     EventName    = new string(tscevents.EventName.ToArray());
     VenueKey     = new string(tscevents.VenueKey.ToArray());
     EventDate    = tscevents.EventDate;
     EventEmail   = new string(tscevents.EventEmail.ToArray());
     EventAddress = new string(tscevents.EventAddress.ToArray());
 }
예제 #4
0
 private static bool FieldsEqual(TSCEvents a, TSCEvents b)
 {
     return(
         (a.EventKey == b.EventKey) &&
         (a.EventName == b.EventName) &&
         (a.VenueKey == b.VenueKey) &&
         (a.EventDate == b.EventDate) &&
         (a.EventEmail == b.EventEmail) &&
         (a.EventAddress == b.EventAddress) &&
         (true)
         );
 }
예제 #5
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            TSCEvents a = obj as TSCEvents;

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