Search Results for

    Show / Hide Table of Contents

    Class EntityKeyComparer

    Implements the System.Collections.Generic.IEqualityComparer<T> for all IBaseEntity. Compares on type, canvas and ID

    Inheritance
    System.Object
    EntityKeyComparer
    Implements
    System.Collections.Generic.IEqualityComparer<IBaseEntity>
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: LemonEdge.API.Core
    Assembly: API.dll
    Syntax
    public class EntityKeyComparer : IEqualityComparer<IBaseEntity>

    Methods

    Equals(IBaseEntity, IBaseEntity)

    Indicates items are equal if the type, canvas and id matches

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

    First item to compare

    IBaseEntity y

    Second item to compare

    Returns
    Type Description
    System.Boolean

    True if the type, canvas and id matches

    GetHashCode(IBaseEntity)

    Hashcode for comparrison

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

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

    Returns
    Type Description
    System.Int32

    Hashcode for comparrison

    Implements

    System.Collections.Generic.IEqualityComparer<T>

    Extension Methods

    MiscExtensions.SetIfNotEqual<T, P>(T, Expression<Func<T, P>>, P)
    ReflectionExtensions.ClearEventInvocations(Object, String)
    StringExtensions.ToCSVFormatString(Object, Type)
    SQLExtensions.ToSQLValue(Object, Boolean)
    In This Article
    Back to top © LemonTree Software Ltd. All rights reserved.