public override bool Equals(object obj) { if (obj is RecurringComponent) { RecurringComponent r = (RecurringComponent)obj; return(UID.Equals(r.UID)); } return(base.Equals(obj)); }
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)); }