KeyWithId<TKey> Struct
Namespace: Stride.Core.YamlAssembly: Stride.Core.Assets.dll
A generic structure that implements the IKeyWithId interface for keys that are not deleted.
public struct KeyWithId<TKey> : IKeyWithId
Type Parameters
Name | Description |
---|---|
TKey | The type of the key. |
Name | Description | |
---|---|---|
Constructors | ||
KeyWithId(ItemId, TKey) | Initializes a new instance of the KeyWithId<TKey> structure. |
|
Fields | ||
Id | The ItemId associated to the key. |
|
Key | The key of the dictionary. |
|
Explicit Interface Implementations | ||
IKeyWithId.Id | The ItemId associated to the key. |
|
IKeyWithId.IsDeleted | Indicates whether this key is considered to be deleted in the dictionary, and kept around for reconcilation purpose. |
|
IKeyWithId.Key | The key of the dictionary. |
|
IKeyWithId.KeyType | The type of the key. |
Constructors
KeyWithId(ItemId, TKey)
Initializes a new instance of the KeyWithId<TKey> structure.
public KeyWithId(ItemId id, TKey key)
Parameters
Type | Name | Description |
---|---|---|
ItemId | id | The ItemId associated to the key. |
TKey | key | The key of the dictionary. |
Fields
Id
The ItemId associated to the key.
public readonly ItemId Id
Field Value
Type | Description |
---|---|
ItemId |
Key
The key of the dictionary.
public readonly TKey Key
Field Value
Type | Description |
---|---|
TKey |
Explicit Interface Implementations
IKeyWithId.Id
The ItemId associated to the key.
readonly ItemId IKeyWithId.Id { get; }
Returns
Type | Description |
---|---|
ItemId |
IKeyWithId.IsDeleted
Indicates whether this key is considered to be deleted in the dictionary, and kept around for reconcilation purpose.
readonly bool IKeyWithId.IsDeleted { get; }
Returns
Type | Description |
---|---|
System.Boolean |
IKeyWithId.Key
The key of the dictionary.
readonly object IKeyWithId.Key { get; }
Returns
Type | Description |
---|---|
System.Object |
IKeyWithId.KeyType
The type of the key.
readonly Type IKeyWithId.KeyType { get; }
Returns
Type | Description |
---|---|
System.Type |