public bool Equals(SourceChangeEventArgs <T> args) { if (args == null) { return(false); } return(((args.ChangeType == SourceChangeType.Reset) && (this.ChangeType == SourceChangeType.Reset)) || ((args.ChangeType == this.ChangeType) && EqualityComparer <T> .Default.Equals(args.Item, this.Item))); }
public override bool Equals(object obj) { SourceChangeEventArgs <T> args = obj as SourceChangeEventArgs <T>; return((args != null) && this.Equals(args)); }