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
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
Returns
| Type |
Description |
| System.Boolean |
|
Equality(EntityIdentifier, Int32)
Declaration
public static bool operator ==(EntityIdentifier id1, int id2)
Parameters
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
Inequality(EntityIdentifier, EntityIdentifier)
Declaration
public static bool operator !=(EntityIdentifier id1, EntityIdentifier id2)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Inequality(EntityIdentifier, Int32)
Declaration
public static bool operator !=(EntityIdentifier id1, int id2)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|