示例#1
0
 public bool Equals(PlayerType other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Representation.Equals(other.Representation) && Player.Equals(other.Player));
 }
示例#2
0
        public sealed override bool Equals(object obj)
        {
            SimpleType other = obj as SimpleType;

            return(other != null && Representation.Equals(other.Representation));
        }