DirectOutput
DirectOutput framework R2 for virtual pinball cabinets.
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros Pages
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 >:
Collaboration diagram for DirectOutput.General.Generic.ExtList< 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

Constructor & Destructor Documentation

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

Member Function Documentation

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

Adds a new item to the ExtList.

Parameters
NewListItemItem to add.
int DirectOutput.General.Generic.ExtList< T >.Add ( object  value)
void DirectOutput.General.Generic.ExtList< T >.AddRange ( IEnumerable< T >  Collection)

Adds a list of items to the ExtList.

Parameters
CollectionCollection of items to add.
void DirectOutput.General.Generic.ExtList< T >.Clear ( )

Clears the ExtList.

ExtList<T> DirectOutput.General.Generic.ExtList< T >.Clone ( )

Creates a clone of the ExtList

Returns
A clone of the ExtList.
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.
bool DirectOutput.General.Generic.ExtList< T >.Contains ( object  value)
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.
void DirectOutput.General.Generic.ExtList< T >.CopyTo ( Array  array,
int  index 
)
IEnumerator<T> DirectOutput.General.Generic.ExtList< T >.GetEnumerator ( )

Returns an enumerator that iterates through a ExtList.

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.
int DirectOutput.General.Generic.ExtList< T >.IndexOf ( object  value)
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.
void DirectOutput.General.Generic.ExtList< T >.Insert ( int  index,
object  value 
)
bool DirectOutput.General.Generic.ExtList< T >.Remove ( ItemToRemove)

Romves a item from the ExtList.

Parameters
ItemToRemoveItem to remove.
void DirectOutput.General.Generic.ExtList< T >.Remove ( object  value)
void DirectOutput.General.Generic.ExtList< T >.RemoveAt ( int  Index)

Removes a item at a specified index.

Parameters
IndexIndex of the item to remove.
void DirectOutput.General.Generic.ExtList< T >.Sort ( )

Sorts the ExtList.

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

Sorts the ExtList.

Parameters
ComparerComparer to using for sorting.
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.
T [] DirectOutput.General.Generic.ExtList< T >.ToArray ( )

Returns a array containg the ExtList items.

Returns
Array of ExtList items.

Property Documentation

int DirectOutput.General.Generic.ExtList< T >.Count
get

Number of items in the ExtList.

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

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

Always false.

bool DirectOutput.General.Generic.ExtList< T >.IsSynchronized
get
object DirectOutput.General.Generic.ExtList< T >.SyncRoot
get
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.

Event Documentation

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

Fires after the ExtList is cleared.

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.

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

Fires after a item is removed from the ExtList.

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

Fires after a item has been set in the ExtList.

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.

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.

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

Fires before a item is removed from the ExtList.

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.


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