Search Results for

    Show / Hide Table of Contents

    Struct EntityIdentifier

    Структура, хранящая в себе идентификатор сущности.

    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 struct EntityIdentifier

    Constructors

    EntityIdentifier(Int32)

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

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

    Properties

    Value

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

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

    Methods

    Equals(Object)

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

    FromId(Int32)

    Статический метод для создания идентификатора.

    Declaration
    public static EntityIdentifier FromId(int id)
    Parameters
    Type Name Description
    System.Int32 id

    Значение, на основе которого создаётся идентификатор.

    Returns
    Type Description
    EntityIdentifier

    GetHashCode()

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

    ToString()

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

    Operators

    Equality(EntityIdentifier, EntityIdentifier)

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

    Equality(EntityIdentifier, Int32)

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

    Implicit(Int32 to EntityIdentifier)

    Неявный конструктор.

    Declaration
    public static implicit operator EntityIdentifier(int id)
    Parameters
    Type Name Description
    System.Int32 id
    Returns
    Type Description
    EntityIdentifier

    Inequality(EntityIdentifier, EntityIdentifier)

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

    Inequality(EntityIdentifier, Int32)

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