Class DirtyTrackingList<T>
Definition
Namespace: StardewUI.Layout
Assembly: StardewUI.dll
List wrapper that tracks whether changes have been made.
public class DirtyTrackingList<T> : System.Collections.Generic.IList<T>,
System.Collections.Generic.ICollection<T>,
System.Collections.Generic.IEnumerable<T>, System.Collections.IEnumerable,
System.Collections.Generic.IReadOnlyList<T>,
System.Collections.Generic.IReadOnlyCollection<T>
Type Parameters
T
The type of elements in the list.
Inheritance
Object ⇦ DirtyTrackingList<T>
Implements
IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable, IReadOnlyList<T>, IReadOnlyCollection<T>
Members
Constructors
Name | Description |
---|---|
DirtyTrackingList<T>() |
Properties
Name | Description |
---|---|
Count | |
IsDirty | Whether changes have been made since the last call to ResetDirty(). |
IsReadOnly | |
Item[int] |
Methods
Name | Description |
---|---|
Add(T) | |
Clear() | |
Contains(T) | |
CopyTo(T, Int32) | |
GetEnumerator() | |
IndexOf(T) | |
Insert(Int32, T) | |
Remove(T) | |
RemoveAt(Int32) | |
ResetDirty() | Resets the dirty state; IsDirty will return false until another mutation occurs. |
SetItems(IEnumerable<T>) | Replaces the entire list with the specified sequence. |
Details
Constructors
DirtyTrackingList<T>()
Properties
Count
Property Value
IsDirty
Whether changes have been made since the last call to ResetDirty().
Property Value
IsReadOnly
Property Value
Item[int]
Property Value
T
Methods
Add(T)
Parameters
item
T
Clear()
Contains(T)
Parameters
item
T
Returns
CopyTo(T, int)
Parameters
array
T
arrayIndex
Int32
GetEnumerator()
Returns
IndexOf(T)
Parameters
item
T
Returns
Insert(int, T)
Parameters
index
Int32
item
T
Remove(T)
Parameters
item
T
Returns
RemoveAt(int)
Parameters
index
Int32
ResetDirty()
Resets the dirty state; IsDirty will return false
until another mutation occurs.
SetItems(IEnumerable<T>)
Replaces the entire list with the specified sequence.
Parameters
items
IEnumerable<T>
The new list items.