DirectOutput
DirectOutput framework R2 for virtual pinball cabinets.
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros Pages
DirectOutput.General.Generic.NamedItemList< T > Class Template Reference

A list of uniquely named items which can be referenced by their name. More...

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

Public Member Functions

bool Contains (string Name)
 Checks if a INamedItem object with the specified name exists in the list. More...
 
new void Sort ()
 Sorts the NamedItemList by the Name of the items. More...
 
 NamedItemList ()
 Initializes a new instance of the NamedItemList{T} class. More...
 
 NamedItemList (IEnumerable< T > EnumerableList)
 Initializes a new instance of the NamedItemList{T} class. More...
 
- Public Member Functions inherited from DirectOutput.General.Generic.ExtList< T >
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

this[string Name] [get]
 Indexer returning the Item with the specified name. More...
 
- Properties inherited from DirectOutput.General.Generic.ExtList< T >
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]
 

Additional Inherited Members

- Events inherited from DirectOutput.General.Generic.ExtList< T >
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

A list of uniquely named items which can be referenced by their name.

Template Parameters
TType of the items contained in the list (must implement INamedItem).
Type Constraints
T :INamedItem 

Constructor & Destructor Documentation

DirectOutput.General.Generic.NamedItemList< T >.NamedItemList ( )

Initializes a new instance of the NamedItemList{T} class.

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

Initializes a new instance of the NamedItemList{T} class.

Parameters
EnumerableListA enumerable list of named items to be added to the list.

Member Function Documentation

bool DirectOutput.General.Generic.NamedItemList< T >.Contains ( string  Name)

Checks if a INamedItem object with the specified name exists in the list.

Parameters
NameName of the item to check.
Returns
true or false.
new void DirectOutput.General.Generic.NamedItemList< T >.Sort ( )

Sorts the NamedItemList by the Name of the items.

Property Documentation

T DirectOutput.General.Generic.NamedItemList< T >.this[string Name]
get

Indexer returning the Item with the specified name.

Parameters
NameName of the item to retrieve.

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