Search Results for

    Show / Hide Table of Contents

    Struct EntityIdentifier<T>

    Типизированный идентификатор сущности.

    Inherited Members
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Lers
    Assembly: Lers.Core.dll
    Syntax
    public readonly struct EntityIdentifier<T>
    Type Parameters
    Name Description
    T

    Constructors

    EntityIdentifier(EntityIdentifier)

    Конструктор.

    Declaration
    public EntityIdentifier(EntityIdentifier id)
    Parameters
    Type Name Description
    EntityIdentifier id

    EntityIdentifier(Int32)

    Конструктор.

    Declaration
    public EntityIdentifier(int value)
    Parameters
    Type Name Description
    System.Int32 value

    Properties

    Id

    Идентификатор.

    Declaration
    public readonly EntityIdentifier Id { get; }
    Property Value
    Type Description
    EntityIdentifier

    Value

    Значение идентификатора.

    Declaration
    public readonly int Value { get; }
    Property Value
    Type Description
    System.Int32

    Methods

    Equals(Object)

    Declaration
    public override readonly bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean
    Overrides
    System.ValueType.Equals(System.Object)

    GetHashCode()

    Declaration
    public override readonly int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.ValueType.GetHashCode()

    ToString()

    Declaration
    public override readonly string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.ValueType.ToString()

    Operators

    Equality(EntityIdentifier<T>, EntityIdentifier<T>)

    Declaration
    public static bool operator ==(EntityIdentifier<T> id1, EntityIdentifier<T> id2)
    Parameters
    Type Name Description
    EntityIdentifier<T> id1
    EntityIdentifier<T> id2
    Returns
    Type Description
    System.Boolean

    Inequality(EntityIdentifier<T>, EntityIdentifier<T>)

    Declaration
    public static bool operator !=(EntityIdentifier<T> id1, EntityIdentifier<T> id2)
    Parameters
    Type Name Description
    EntityIdentifier<T> id1
    EntityIdentifier<T> id2
    Returns
    Type Description
    System.Boolean
    In This Article
    Back to top ©2018 - 2026, ООО "ЛЭРС УЧЁТ"