Example #1
0
 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()));
 }
Example #2
0
 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);
 }