Diffusion .NET Classic API - Core and Common  5.9.4
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
PushTechnology.DiffusionCore.Threading.ThreadSafeList< T > Class Template Reference

A threadsafe generic list. More...

Inheritance diagram for PushTechnology.DiffusionCore.Threading.ThreadSafeList< T >:

Public Member Functions

 ThreadSafeList ()
 Constructor. More...
 
IEnumerator< T > GetEnumerator ()
 Returns the enumerator. More...
 
void Add (T item)
 Adds an item to the collection. More...
 
void Clear ()
 Clears the item collection. More...
 
bool Contains (T item)
 Determines whether collection contains the item. More...
 
void CopyTo (T[] array, int arrayIndex)
 
bool Remove (T item)
 
int IndexOf (T item)
 Returns the index of the item in the collection. More...
 
void Insert (int index, T item)
 Inserts an item in the collection. More...
 
void RemoveAt (int index)
 Removes an item from the collection at a given index. More...
 
void RemoveRange (int index, int count)
 Remove a range of items. More...
 

Properties

int Count [get]
 Returns the number of items in the collection. More...
 
bool IsReadOnly [get]
 Returns whether the collection is read-only. More...
 
this[int index] [get, set]
 Returns an item at a given index. More...
 

Detailed Description

A threadsafe generic list.

Constructor & Destructor Documentation

PushTechnology.DiffusionCore.Threading.ThreadSafeList< T >.ThreadSafeList ( )

Constructor.

Member Function Documentation

void PushTechnology.DiffusionCore.Threading.ThreadSafeList< T >.Add ( item)

Adds an item to the collection.

Parameters
item
void PushTechnology.DiffusionCore.Threading.ThreadSafeList< T >.Clear ( )

Clears the item collection.

bool PushTechnology.DiffusionCore.Threading.ThreadSafeList< T >.Contains ( item)

Determines whether collection contains the item.

Parameters
item
Returns
void PushTechnology.DiffusionCore.Threading.ThreadSafeList< T >.CopyTo ( T[]  array,
int  arrayIndex 
)

Parameters
array
arrayIndex
IEnumerator<T> PushTechnology.DiffusionCore.Threading.ThreadSafeList< T >.GetEnumerator ( )

Returns the enumerator.

Returns
int PushTechnology.DiffusionCore.Threading.ThreadSafeList< T >.IndexOf ( item)

Returns the index of the item in the collection.

Parameters
item
Returns
void PushTechnology.DiffusionCore.Threading.ThreadSafeList< T >.Insert ( int  index,
item 
)

Inserts an item in the collection.

Parameters
index
item
bool PushTechnology.DiffusionCore.Threading.ThreadSafeList< T >.Remove ( item)

Parameters
item
Returns
void PushTechnology.DiffusionCore.Threading.ThreadSafeList< T >.RemoveAt ( int  index)

Removes an item from the collection at a given index.

Parameters
index
void PushTechnology.DiffusionCore.Threading.ThreadSafeList< T >.RemoveRange ( int  index,
int  count 
)

Remove a range of items.

Parameters
index
count

Property Documentation

int PushTechnology.DiffusionCore.Threading.ThreadSafeList< T >.Count
get

Returns the number of items in the collection.

bool PushTechnology.DiffusionCore.Threading.ThreadSafeList< T >.IsReadOnly
get

Returns whether the collection is read-only.

T PushTechnology.DiffusionCore.Threading.ThreadSafeList< T >.this[int index]
getset

Returns an item at a given index.

Parameters
index
Returns