Like , but allows you to add and remove elements while enumerating. When
all enumerations are complete, all remembered removed and added elements will be applied.
Use when adding and removing is rare, otherwise just create a new list before enumerating.
List T View code on GitHub
Inheritance Hierarchy
DeltaEngine.Extensions ChangeableList T
Namespace: DeltaEngine.Extensions
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Type Parameters
- T
The ChangeableList T type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ChangeableList T | Initializes a new instance of the ChangeableList T class | |
ChangeableList T (IEnumerable T ) | Initializes a new instance of the ChangeableList T class |
Methods
Name | Description | |
---|---|---|
Add |
Remembered elements to be added and removed when finished enumerating. If we are not
enumerating, adding and removing is done directly (this list is empty then).
View code on GitHub | |
AddRange | ||
Clear | ||
Contains | ||
CopyTo | ||
GetEnumerator | ||
IndexOf | ||
Remove |
Remove element. If we are currently enumerating, we will remember elements to remove later.
View code on GitHub | |
RemoveAt | ||
ToArray |
Extension Methods
Name | Description | |
---|---|---|
AsWeakEnumerable | (Defined by TestEnumerable.) | |
Compare T | (Defined by ArrayExtensions.) | |
ToText T | (Defined by ArrayExtensions.) |
Properties
Name | Description | |
---|---|---|
Count | ||
IsReadOnly | ||
Item |
Explicit Interface Implementations
Name | Description | |
---|---|---|
IEnumerable GetEnumerator |
See Also