示例#1
0
 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)));
 }
示例#2
0
        public override bool Equals(object obj)
        {
            SourceChangeEventArgs <T> args = obj as SourceChangeEventArgs <T>;

            return((args != null) && this.Equals(args));
        }