File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed
System.Collections.Generic Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,20 @@ public int GetHashCode(object obj)
5151
5252 return GetHashCode ( ( T ) obj ) ;
5353 }
54+
55+ public bool Equals ( object x , object y )
56+ {
57+
58+ if ( x == null || y == null ) {
59+ return false ;
60+ }
61+
62+ if ( ! ( x is T ) || ! ( y is T ) ) {
63+ return false ;
64+ }
65+
66+ return Equals ( ( T ) x , ( T ) y ) ;
67+ }
5468 }
5569}
5670
Original file line number Diff line number Diff line change @@ -53,6 +53,20 @@ public int GetHashCode(object obj)
5353
5454 return GetHashCode ( ( T ) obj ) ;
5555 }
56+
57+ public bool Equals ( object x , object y )
58+ {
59+
60+ if ( x == null || y == null ) {
61+ return false ;
62+ }
63+
64+ if ( ! ( x is T ) || ! ( y is T ) ) {
65+ return false ;
66+ }
67+
68+ return Equals ( ( T ) x , ( T ) y ) ;
69+ }
5670 }
5771}
5872
You can’t perform that action at this time.
0 commit comments