public bool Equals(Registry other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } if (other.GetType() == typeof(Registry) && GetType() == typeof(Registry)) { return(false); } return(Equals(other.GetType(), GetType())); }
public bool Equals(Registry other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } if (other.GetType() == typeof(Registry) && GetType() == typeof(Registry)) { return(false); } if (other.GetType() == GetType()) { return(!GetType().GetTypeInfo().IsNotPublic); } return(false); }