S System.Collections.Generic.IEqualityComparer<T> Default | Access: Read-Only
Value:
A default generic equality comparer for type T. The procedure is as follows:
- If T is a primitive type (char, sbyte, byte, short, ushort, int, uint, float, double, decimal),
the equalityComparer will be a standard equalityComparer for that type
- If the actual generic argument T implements the generic interface
ISequenced<T> for some value W of its generic parameter T,
the equalityComparer will be SequencedCollectionEqualityComparer<T,W>
- If the actual generic argument T implements
ICollection<T> for some value W of its generic parameter T,
the equalityComparer will be UnsequencedCollectionEqualityComparer<T,W>
- If T is a type implementing , the equalityComparer
will be EquatableEqualityComparer<T>
- If T is a type not implementing , the equalityComparer
will be NaturalEqualityComparer<T>
The object is constructed when this class is initialised, i.e.
its static constructors called. Thus, the property will be the same object
for the duration of an invocation of the runtime, but a value serialized in
another invocation and deserialized here will not be the same object.
|