CollectionItemIdentifiers Class
Namespace: Stride.Core.Reflection
Assembly: Stride.Core.Assets.dll
A container for item identifiers and similar metadata that is associated to a collection or a dictionary.
System.Object →
CollectionItemIdentifiers
Derived from CollectionItemIdentifiers:
public class CollectionItemIdentifiers : IEnumerable<KeyValuePair<object, ItemId>>, IEnumerable
|
Improve this Doc
View Source
Properties
DeletedCount
public int DeletedCount { get; }
Property Value
Type |
Description |
System.Int32 |
|
DeletedItems
public IEnumerable<ItemId> DeletedItems { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<ItemId> |
|
Item[Object]
Gets or sets the ItemId corresponding to the given key.
public ItemId this[object key] { get; set; }
Parameters
Type |
Name |
Description |
System.Object |
key |
The key for which to retrieve the ItemId.
|
Property Value
Type |
Description |
ItemId |
The ItemId corresponding to the given key.
|
KeyCount
public int KeyCount { get; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Methods
Add(Object, ItemId)
public void Add(object key, ItemId id)
Parameters
Type |
Name |
Description |
System.Object |
key |
|
ItemId |
id |
|
Clear()
CloneInto(CollectionItemIdentifiers, IReadOnlyDictionary<Object, Object>)
public void CloneInto(CollectionItemIdentifiers target, IReadOnlyDictionary<object, object> referenceTypeClonedKeys)
Parameters
Type |
Name |
Description |
CollectionItemIdentifiers |
target |
|
System.Collections.Generic.IReadOnlyDictionary<System.Object, System.Object> |
referenceTypeClonedKeys |
|
ContainsKey(Object)
public bool ContainsKey(object key)
Parameters
Type |
Name |
Description |
System.Object |
key |
|
Returns
Type |
Description |
System.Boolean |
|
Delete(Object, Boolean)
public ItemId Delete(object key, bool markAsDeleted = true)
Parameters
Type |
Name |
Description |
System.Object |
key |
|
System.Boolean |
markAsDeleted |
|
Returns
DeleteAndShift(Int32, Boolean)
public ItemId DeleteAndShift(int index, bool markAsDeleted = true)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
System.Boolean |
markAsDeleted |
|
Returns
GetEnumerator()
public IEnumerator<KeyValuePair<object, ItemId>> GetEnumerator()
Returns
Type |
Description |
System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<System.Object, ItemId>> |
|
GetKey(ItemId)
public object GetKey(ItemId itemId)
Parameters
Type |
Name |
Description |
ItemId |
itemId |
|
Returns
Type |
Description |
System.Object |
|
Insert(Int32, ItemId)
public void Insert(int index, ItemId id)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
ItemId |
id |
|
IsDeleted(ItemId)
public bool IsDeleted(ItemId itemId)
Parameters
Type |
Name |
Description |
ItemId |
itemId |
|
Returns
Type |
Description |
System.Boolean |
|
MarkAsDeleted(ItemId)
public void MarkAsDeleted(ItemId id)
Parameters
Type |
Name |
Description |
ItemId |
id |
|
Set(Object, ItemId)
public void Set(object key, ItemId id)
Parameters
Type |
Name |
Description |
System.Object |
key |
|
ItemId |
id |
|
TryGet(Object, out ItemId)
public bool TryGet(object key, out ItemId id)
Parameters
Type |
Name |
Description |
System.Object |
key |
|
ItemId |
id |
|
Returns
Type |
Description |
System.Boolean |
|
UnmarkAsDeleted(ItemId)
public void UnmarkAsDeleted(ItemId id)
Parameters
Type |
Name |
Description |
ItemId |
id |
|
Validate(Boolean)
public void Validate(bool isList)
Parameters
Type |
Name |
Description |
System.Boolean |
isList |
|
|
Improve this Doc
View Source
Explicit Interface Implementations
IEnumerable.GetEnumerator()
IEnumerator IEnumerable.GetEnumerator()
Returns
Type |
Description |
System.Collections.IEnumerator |
|
Extension Methods