Esempio n. 1
0
 public override bool Equals(object obj)
 {
     if (obj is RecurringComponent)
     {
         RecurringComponent r = (RecurringComponent)obj;
         return(UID.Equals(r.UID));
     }
     return(base.Equals(obj));
 }
Esempio n. 2
0
 public override bool Equals(object obj)
 {
     if (obj is RecurringComponent &&
         obj != this)
     {
         RecurringComponent r = (RecurringComponent)obj;
         if (UID != null)
         {
             return(UID.Equals(r.UID));
         }
         else
         {
             return(UID == r.UID);
         }
     }
     return(base.Equals(obj));
 }