WIP
DirectOutput framework for virtual pinball cabinets WIP
Go to:
Overview 
DirectOutput.General.Generic.ExtList< T > Class Template Reference

Extended version of the generic List class supporting events for various actions on the list. More...

Inheritance diagram for DirectOutput.General.Generic.ExtList< T >:
DirectOutput.General.Generic.NamedItemList< T >

Public Member Functions

int IndexOf (T Item)
 Determines the index of a specific item. More...
 
void CopyTo (T[] Array, int ArrayIndex)
 Copies the elements of the ExtList to an Array, starting at a particular Array index. More...
 
IEnumerator< T > GetEnumerator ()
 Returns an enumerator that iterates through a ExtList. More...
 
void Add (T NewListItem)
 Adds a new item to the ExtList. More...
 
void AddRange (IEnumerable< T > Collection)
 Adds a list of items to the ExtList. More...
 
ExtList< T > Clone ()
 Creates a clone of the ExtList More...
 
void Insert (int Index, T Item)
 Inserts an item to the ExtList at the specified Index. More...
 
void Clear ()
 Clears the ExtList. More...
 
bool Remove (T ItemToRemove)
 Romves a item from the ExtList. More...
 
void RemoveAt (int Index)
 Removes a item at a specified index. More...
 
bool Contains (T ItemToCheck)
 Checks wether the specified item is contained in the ExtList. More...
 
void Sort ()
 Sorts the ExtList. More...
 
void Sort (IComparer< T > Comparer)
 Sorts the ExtList. More...
 
void Sort (Comparison< T > Comparison)
 Sorts the elements in the entire ExtList using the specified System.Comparison<T>. More...
 
T[] ToArray ()
 Returns a array containg the ExtList items. More...
 
 ExtList ()
 
 ExtList (IEnumerable< T > EnumerableList)
 
void CopyTo (Array array, int index)
 
int Add (object value)
 
bool Contains (object value)
 
int IndexOf (object value)
 
void Insert (int index, object value)
 
void Remove (object value)
 

Properties

bool IsReadOnly [get]
 This ExtList objects are not readonly.
Will always return false. More...
 
int Count [get]
 Number of items in the ExtList. More...
 
this[int Index] [get, set]
 Indexer of the ExtList.
Returns the item at the specified index. More...
 
bool IsSynchronized [get]
 
object SyncRoot [get]
 
bool IsFixedSize [get]
 

Events

EventHandler< EventArgs > BeforeClear
 Fires before the ExtList is cleared.
If a exception is trown within the events, the list is not cleared. More...
 
EventHandler< EventArgs > AfterClear
 Fires after the ExtList is cleared. More...
 
EventHandler< InsertEventArgs< T > > BeforeInsert
 Fires before a new item is inserted into the ExtList.
If a exception is occurs in the event, to item is not added. OnValidate is called prior to this method.
More...
 
EventHandler< InsertEventArgs< T > > AfterInsert
 Fires after a new item is inserted into the ExtList.
OnValidate is called prior to this method.
More...
 
EventHandler< RemoveEventArgs< T > > BeforeRemove
 Fires before a item is removed from the ExtList. More...
 
EventHandler< RemoveEventArgs< T > > AfterRemove
 Fires after a item is removed from the ExtList. More...
 
EventHandler< SetEventArgs< T > > BeforeSet
 Fires before a item is set in the ExtList. OnValidate is called prior to this method. More...
 
EventHandler< SetEventArgs< T > > AfterSet
 Fires after a item has been set in the ExtList. More...
 

Detailed Description

Extended version of the generic List class supporting events for various actions on the list.

Template Parameters
TType of the items contained in the list

Definition at line 11 of file ExtList.cs.

Constructor & Destructor Documentation

Definition at line 363 of file ExtList.cs.

DirectOutput.General.Generic.ExtList< T >.ExtList ( IEnumerable< T >  EnumerableList)

Definition at line 368 of file ExtList.cs.

Member Function Documentation

void DirectOutput.General.Generic.ExtList< T >.Add ( NewListItem)

Adds a new item to the ExtList.

Parameters
NewListItemItem to add.

Definition at line 70 of file ExtList.cs.

int DirectOutput.General.Generic.ExtList< T >.Add ( object  value)

Definition at line 397 of file ExtList.cs.

void DirectOutput.General.Generic.ExtList< T >.AddRange ( IEnumerable< T >  Collection)

Adds a list of items to the ExtList.

Parameters
CollectionCollection of items to add.

Definition at line 88 of file ExtList.cs.

Clears the ExtList.

Definition at line 140 of file ExtList.cs.

Creates a clone of the ExtList

Returns
A clone of the ExtList.

Definition at line 101 of file ExtList.cs.

bool DirectOutput.General.Generic.ExtList< T >.Contains ( ItemToCheck)

Checks wether the specified item is contained in the ExtList.

Parameters
ItemToCheckItem to check.
Returns
true or false.

Definition at line 219 of file ExtList.cs.

bool DirectOutput.General.Generic.ExtList< T >.Contains ( object  value)

Definition at line 407 of file ExtList.cs.

void DirectOutput.General.Generic.ExtList< T >.CopyTo ( T[]  Array,
int  ArrayIndex 
)

Copies the elements of the ExtList to an Array, starting at a particular Array index.

Parameters
ArrayThe one-dimensional Array that is the destination of the elements copied from ExtList.The Array must have zero-based indexing.
ArrayIndexThe zero-based index in Array at which copying begins.

Definition at line 32 of file ExtList.cs.

void DirectOutput.General.Generic.ExtList< T >.CopyTo ( Array  array,
int  index 
)

Definition at line 377 of file ExtList.cs.

IEnumerator<T> DirectOutput.General.Generic.ExtList< T >.GetEnumerator ( )

Returns an enumerator that iterates through a ExtList.

Definition at line 52 of file ExtList.cs.

int DirectOutput.General.Generic.ExtList< T >.IndexOf ( Item)

Determines the index of a specific item.

Parameters
ItemItem to locate.
Returns
Index of the specified item.

Definition at line 21 of file ExtList.cs.

int DirectOutput.General.Generic.ExtList< T >.IndexOf ( object  value)

Definition at line 416 of file ExtList.cs.

void DirectOutput.General.Generic.ExtList< T >.Insert ( int  Index,
Item 
)

Inserts an item to the ExtList at the specified Index.

Parameters
IndexIndex at which to insert the item.
ItemItem to insert.

Definition at line 118 of file ExtList.cs.

void DirectOutput.General.Generic.ExtList< T >.Insert ( int  index,
object  value 
)

Definition at line 425 of file ExtList.cs.

bool DirectOutput.General.Generic.ExtList< T >.Remove ( ItemToRemove)

Romves a item from the ExtList.

Parameters
ItemToRemoveItem to remove.

Definition at line 169 of file ExtList.cs.

void DirectOutput.General.Generic.ExtList< T >.Remove ( object  value)

Definition at line 439 of file ExtList.cs.

void DirectOutput.General.Generic.ExtList< T >.RemoveAt ( int  Index)

Removes a item at a specified index.

Parameters
IndexIndex of the item to remove.

Definition at line 195 of file ExtList.cs.

Sorts the ExtList.

Definition at line 256 of file ExtList.cs.

void DirectOutput.General.Generic.ExtList< T >.Sort ( IComparer< T >  Comparer)

Sorts the ExtList.

Parameters
ComparerComparer to using for sorting.

Definition at line 266 of file ExtList.cs.

void DirectOutput.General.Generic.ExtList< T >.Sort ( Comparison< T >  Comparison)

Sorts the elements in the entire ExtList using the specified System.Comparison<T>.

Parameters
ComparisonComparer to using for sorting.

Definition at line 274 of file ExtList.cs.

T [] DirectOutput.General.Generic.ExtList< T >.ToArray ( )

Returns a array containg the ExtList items.

Returns
Array of ExtList items.

Definition at line 285 of file ExtList.cs.

Property Documentation

Number of items in the ExtList.

Definition at line 159 of file ExtList.cs.

bool DirectOutput.General.Generic.ExtList< T >.IsFixedSize
get

Definition at line 435 of file ExtList.cs.

bool DirectOutput.General.Generic.ExtList< T >.IsReadOnly
get

This ExtList objects are not readonly.
Will always return false.

Always false.

Definition at line 44 of file ExtList.cs.

bool DirectOutput.General.Generic.ExtList< T >.IsSynchronized
get

Definition at line 383 of file ExtList.cs.

object DirectOutput.General.Generic.ExtList< T >.SyncRoot
get

Definition at line 388 of file ExtList.cs.

T DirectOutput.General.Generic.ExtList< T >.this[int Index]
getset

Indexer of the ExtList.
Returns the item at the specified index.

Parameters
IndexIndex of the item to return.

Item at specified index.

Definition at line 233 of file ExtList.cs.

Event Documentation

EventHandler<EventArgs> DirectOutput.General.Generic.ExtList< T >.AfterClear

Fires after the ExtList is cleared.

Definition at line 306 of file ExtList.cs.

EventHandler<InsertEventArgs<T> > DirectOutput.General.Generic.ExtList< T >.AfterInsert

Fires after a new item is inserted into the ExtList.
OnValidate is called prior to this method.

Definition at line 323 of file ExtList.cs.

EventHandler<RemoveEventArgs<T> > DirectOutput.General.Generic.ExtList< T >.AfterRemove

Fires after a item is removed from the ExtList.

Definition at line 338 of file ExtList.cs.

EventHandler<SetEventArgs<T> > DirectOutput.General.Generic.ExtList< T >.AfterSet

Fires after a item has been set in the ExtList.

Definition at line 354 of file ExtList.cs.

EventHandler<EventArgs> DirectOutput.General.Generic.ExtList< T >.BeforeClear

Fires before the ExtList is cleared.
If a exception is trown within the events, the list is not cleared.

Definition at line 299 of file ExtList.cs.

EventHandler<InsertEventArgs<T> > DirectOutput.General.Generic.ExtList< T >.BeforeInsert

Fires before a new item is inserted into the ExtList.
If a exception is occurs in the event, to item is not added. OnValidate is called prior to this method.

Definition at line 317 of file ExtList.cs.

EventHandler<RemoveEventArgs<T> > DirectOutput.General.Generic.ExtList< T >.BeforeRemove

Fires before a item is removed from the ExtList.

Definition at line 332 of file ExtList.cs.

EventHandler<SetEventArgs<T> > DirectOutput.General.Generic.ExtList< T >.BeforeSet

Fires before a item is set in the ExtList. OnValidate is called prior to this method.

Definition at line 348 of file ExtList.cs.


The documentation for this class was generated from the following file: