Struct VersionList<TItem>
Wrapper for Array with versioning.
Whenever the list is modified, the version is incremented.
Assembly: fwt.core.dll
Syntax
public struct VersionList<TItem>
Type Parameters
| Name |
Description |
| TItem |
Type of item in the list
|
Fields
Values
Declaration
public List<TItem> Values
Field Value
| Type |
Description |
| List<TItem> |
|
Version
Version of the list.
Whenever the list is modified, this value is incremented.
Declaration
Field Value
Properties
Count
Declaration
public int Count { get; }
Property Value
IsCreated
Declaration
public bool IsCreated { get; }
Property Value
IsDirty
Declaration
public bool IsDirty { get; }
Property Value
this[int]
Declaration
public TItem this[int index] { get; set; }
Parameters
| Type |
Name |
Description |
| int |
index |
|
Property Value
Length
Declaration
public int Length { get; }
Property Value
Methods
Add(TItem)
Declaration
public void Add(TItem item)
Parameters
| Type |
Name |
Description |
| TItem |
item |
|
Clear()
Declaration
FillArray(TItem)
Declaration
public void FillArray(TItem value)
Parameters
| Type |
Name |
Description |
| TItem |
value |
|
Init()
Declaration
MarkDirty()
Declaration
RemoveAt(int)
Declaration
public void RemoveAt(int index)
Parameters
| Type |
Name |
Description |
| int |
index |
|
ResetDirty()
Declaration
SetItemsCount(int)
Declaration
public void SetItemsCount(int itemsCount)
Parameters
| Type |
Name |
Description |
| int |
itemsCount |
|
Extension Methods