Click or drag to resize

DelayedListT Class

A list wrapper that delays adding or removing item from the list until ProcessPending is called.
Inheritance Hierarchy
SystemObject
  Archon.SwissArmyLib.CollectionsDelayedListT

Namespace:  Archon.SwissArmyLib.Collections
Assembly:  Archon.SwissArmyLib (in Archon.SwissArmyLib.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class DelayedList<T> : IList<T>, 
	ICollection<T>, IEnumerable<T>, IEnumerable
Request Example View Source

Type Parameters

T
The type of items this list should contain.

The DelayedListT type exposes the following members.

Constructors
  NameDescription
Public methodDelayedListT
Creates a new DelayedList which uses ListT.
Public methodDelayedListT(IListT)
Creates a new DelayedList that wraps the given list.
Public methodDelayedListT(IListT, Int32)
Creates a new DelayedList that wraps the given list.
Public methodDelayedListT(Int32, Int32)
Creates a new DelayedList which uses ListT and has the specified initial capacity and change capacity.
Top
Properties
  NameDescription
Public propertyBackingList
A readonly version of the list containing processed items.
Public propertyCount
Gets the amount of items in the list.
Public propertyItem
Gets the item at a specific index.
Top
Methods
  NameDescription
Public methodAdd
Public methodAddRange
Adds multiple items to the list the next time ProcessPending is called.
Public methodClear
Public methodClearInstantly
Clears all items from the list and all pending additions and removals instantly, without having to call ProcessPending.
Public methodClearPending
Clears all pending changes.
Public methodContains
Checks whether the backing list currently contains a specific item.
Public methodCopyTo
Copies the contents of the backing list to the specified array starting at the specified index.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetEnumerator
Gets an enumerator for the backing list.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Public methodIndexOf
Gets the index of an item in the list.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodProcessPending
Processes all pending additions and removals.
Public methodRemove
Public methodRemoveAt
Removes the value currently found at the specified index the next time ProcessPending is called.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
See Also