Show / Hide Table of Contents

    Class IdentityComparer

    Represents a comparison operation that tests equality by reference instead of equality by value. Basically, the comparison is done by checking if returns true rather than by calling the "Equals" function.

    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 Source

    Default

    Gets an IdentityComparer<T> object that tests equality by reference instead of equality by value. Basically, the comparison is done by checking if returns true rather than by calling the "Equals" function.

    Declaration
    public static IdentityComparer Default { get; }
    Property Value
    Type Description
    IdentityComparer

    Methods

    | Improve this Doc View Source

    Equals(Object, Object)

    Declaration
    public bool Equals(object x, object y)
    Parameters
    Type Name Description
    System.Object x
    System.Object y
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    GetHashCode(Object)

    Declaration
    public int GetHashCode(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Int32
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)