ChangeableList T  ClassDelta Engine Documentation
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

System Object
  DeltaEngine.Extensions ChangeableList T 

Namespace: DeltaEngine.Extensions
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public sealed class ChangeableList<T> : ICollection<T>, 
	IEnumerable<T>, IEnumerable
Type Parameters

T

The ChangeableList T  type exposes the following members.

Constructors

  NameDescription
Public methodChangeableList T  
Initializes a new instance of the ChangeableList T  class
Public methodChangeableList T (IEnumerable T )
Initializes a new instance of the ChangeableList T  class
Top
Methods

  NameDescription
Public methodAdd
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
Public methodAddRange
Public methodClear
Public methodContains
Public methodCopyTo
Public methodGetEnumerator
Public methodIndexOf
Public methodRemove
Remove element. If we are currently enumerating, we will remember elements to remove later. View code on GitHub
Public methodRemoveAt
Public methodToArray
Top
Extension Methods

  NameDescription
Public Extension MethodAsWeakEnumerable (Defined by TestEnumerable.)
Public Extension MethodCompare T  (Defined by ArrayExtensions.)
Public Extension MethodToText T  (Defined by ArrayExtensions.)
Top
Properties

  NameDescription
Public propertyCount
Public propertyIsReadOnly
Public propertyItem
Top
Explicit Interface Implementations

  NameDescription
Explicit interface implemetationPrivate methodIEnumerable GetEnumerator
Top
See Also