Search Results for

    Show / Hide Table of Contents

    Class EntityKeyComparer<T>

    Implements the IEqualityComparer<T> for a specific type T that implements IBaseEntity. Compares on canvas and ID

    Inheritance
    object
    EntityKeyComparer<T>
    Implements
    IEqualityComparer<T>
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: LemonEdge.API.Entities
    Assembly: LemonEdge.API.dll
    Syntax
    public class EntityKeyComparer<T> : IEqualityComparer<T> where T : IBaseEntity
    Type Parameters
    Name Description
    T

    The type that implements IBaseEntity that we want to see if is in the same canvas with the same id

    Constructors

    EntityKeyComparer()

    Declaration
    public EntityKeyComparer()

    Methods

    Equals(T, T)

    Compares on canvas and id for equality

    Declaration
    public bool Equals(T x, T y)
    Parameters
    Type Name Description
    T x

    First item to compare

    T y

    Second item to compare

    Returns
    Type Description
    bool

    True if the canvas and id are equal

    GetHashCode(T)

    Hashcode for comparrison

    Declaration
    public int GetHashCode(T obj)
    Parameters
    Type Name Description
    T obj

    The item to retrieve a hashcode for on what we compare for equality

    Returns
    Type Description
    int

    Hashcode for comparrison

    Implements

    IEqualityComparer<T>

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.