When implemented by a class, gets whether or not this IType contains
Types that implement well-behaived Equals() method.
Namespace:
NHibernate.TypeAssembly: NHibernate (in NHibernate.dll)
Syntax
Visual Basic (Declaration) |
---|
ReadOnly Property HasNiceEquals As Boolean |
C# |
---|
bool HasNiceEquals { get; } |
Visual C++ |
---|
property bool HasNiceEquals { bool get (); } |
JavaScript |
---|
function get_hasNiceEquals(); |
Field Value
true if a well-behaived Equals() is implemented.
Remarks
Strickly, if this method returns true then x.Equals(y) implies IType.Equals(x, y) and also IType.Equals(x, y) implies that probably x.Equals(y)
In the default implementations ImmutableTypes are assumed to have HaveNiceEquals==true and MutableTypes are assumed to have HaveNiceEquals==false.
This code doesn't look like it is used anywhere internally because I did a search on ".HasNiceEquals" and found no results. So it looks like it is used for a description of the IType only.