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)); }
public sealed override bool Equals(object obj) { SimpleType other = obj as SimpleType; return(other != null && Representation.Equals(other.Representation)); }