Advertisement
uniblab

Untitled

Oct 16th, 2019
385
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.24 KB | None | 0 0
  1. public System.Boolean Equals( T x, T y ) {
  2.     return ( System.Object.ReferenceEquals( x, y ) )
  3.         ? true
  4.         : ( ( null == (System.Object)x ) ^ ( null == (System.Object)y ) )
  5.             ? false
  6.             : x.UniqueProperty.Equals( y.UniqueProperty )
  7.     ;
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement