public override bool Equals(object obj) { PossibleTypeReference other = obj as PossibleTypeReference; if (other == null) { return(false); } return(this.Name == other.Name && this.TypeParameterCount == other.TypeParameterCount && object.Equals(this.ExtensionMethod, other.ExtensionMethod)); }
public override bool Equals(object obj) { if (!(obj is PossibleTypeReference)) { return(false); } if (this == obj) { return(true); } PossibleTypeReference myPossibleTypeReference = (PossibleTypeReference)obj; return(this.Name == myPossibleTypeReference.Name && this.Global == myPossibleTypeReference.Global && this.TypeParameterCount == myPossibleTypeReference.TypeParameterCount); }