Class IdentityComparer
Represents a comparison operation that tests equality by reference
instead of equality by value. Basically, the comparison is done by
checking if
Note that the assumption is that the object is passed will be a reference type, although it is not strictly enforced.
Inheritance
System.Object
IdentityComparer
Namespace: Lucene.Net.Support
Assembly: Lucene.Net.dll
Syntax
public class IdentityComparer : IEqualityComparer
Properties
| Improve this Doc View SourceDefault
Gets an IdentityComparer<T> object that tests equality by reference
instead of equality by value. Basically, the comparison is done by
checking if
Declaration
public static IdentityComparer Default { get; }
Property Value
Type | Description |
---|---|
Identity |
Methods
| Improve this Doc View SourceEquals(Object, Object)
Declaration
public bool Equals(object x, object y)
Parameters
Type | Name | Description |
---|---|---|
System. |
x | |
System. |
y |
Returns
Type | Description |
---|---|
System. |
GetHashCode(Object)
Declaration
public int GetHashCode(object obj)
Parameters
Type | Name | Description |
---|---|---|
System. |
obj |
Returns
Type | Description |
---|---|
System. |