public override bool Equals(object obj) { if (obj is TypeMember) { return(TypeMember.Equals(this, (TypeMember)obj)); } return(false); }
public static bool Equals(TypeMember tm1, TypeMember tm2) { if(Object.ReferenceEquals(tm1,tm2)) return true; if(Object.ReferenceEquals(tm1,null) || Object.ReferenceEquals(tm2,null)) return false; if(tm1.type == tm2.type && tm1.member == tm2.member) return true; return false; }
public static bool Equals(TypeMember tm1, TypeMember tm2) { if (Object.ReferenceEquals(tm1, tm2)) { return(true); } if (Object.ReferenceEquals(tm1, null) || Object.ReferenceEquals(tm2, null)) { return(false); } if (tm1.type == tm2.type && tm1.member == tm2.member) { return(true); } return(false); }
public static bool operator !=(TypeMember tm1, TypeMember tm2) { return(!TypeMember.Equals(tm1, tm2)); }
public static bool Equals(TypeMember tm1, TypeMember tm2) { return(object.ReferenceEquals(tm1, tm2) || (!object.ReferenceEquals(tm1, null) && !object.ReferenceEquals(tm2, null) && (tm1.type == tm2.type && tm1.member == tm2.member))); }
public override bool Equals(object obj) { return(obj is TypeMember && TypeMember.Equals(this, (TypeMember)obj)); }