Class SharedList<T>
Inheritance
SharedList<T>
Assembly: DotNetNuke.dll
Syntax
public class SharedList<T> : IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable, IDisposable
Type Parameters
Constructors
SharedList()
Declaration
SharedList(ILockStrategy)
Declaration
public SharedList(ILockStrategy lockStrategy)
Parameters
SharedList(LockingStrategy)
Declaration
public SharedList(LockingStrategy strategy)
Parameters
Properties
Count
Declaration
public int Count { get; }
Property Value
IsReadOnly
Declaration
public bool IsReadOnly { get; }
Property Value
this[int]
Declaration
public T this[int index] { get; set; }
Parameters
Type |
Name |
Description |
int |
index |
|
Property Value
Methods
Add(T)
Declaration
Parameters
Type |
Name |
Description |
T |
item |
|
Clear()
Declaration
Contains(T)
Declaration
public bool Contains(T item)
Parameters
Type |
Name |
Description |
T |
item |
|
Returns
CopyTo(T[], int)
Declaration
public void CopyTo(T[] array, int arrayIndex)
Parameters
Type |
Name |
Description |
T[] |
array |
|
int |
arrayIndex |
|
Dispose()
Declaration
Dispose(bool)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
bool |
disposing |
|
EnsureNotDisposed()
Declaration
public void EnsureNotDisposed()
~SharedList()
Declaration
GetEnumerator()
Declaration
public IEnumerator<T> GetEnumerator()
Returns
GetEnumerator1()
Declaration
public IEnumerator GetEnumerator1()
Returns
GetReadLock()
Declaration
public ISharedCollectionLock GetReadLock()
Returns
GetReadLock(int)
Declaration
public ISharedCollectionLock GetReadLock(int millisecondTimeout)
Parameters
Type |
Name |
Description |
int |
millisecondTimeout |
|
Returns
GetReadLock(TimeSpan)
Declaration
public ISharedCollectionLock GetReadLock(TimeSpan timeOut)
Parameters
Returns
GetWriteLock()
Declaration
public ISharedCollectionLock GetWriteLock()
Returns
GetWriteLock(int)
Declaration
public ISharedCollectionLock GetWriteLock(int millisecondTimeout)
Parameters
Type |
Name |
Description |
int |
millisecondTimeout |
|
Returns
GetWriteLock(TimeSpan)
Declaration
public ISharedCollectionLock GetWriteLock(TimeSpan timeOut)
Parameters
Returns
IndexOf(T)
Declaration
public int IndexOf(T item)
Parameters
Type |
Name |
Description |
T |
item |
|
Returns
Insert(int, T)
Declaration
public void Insert(int index, T item)
Parameters
Type |
Name |
Description |
int |
index |
|
T |
item |
|
Remove(T)
Declaration
public bool Remove(T item)
Parameters
Type |
Name |
Description |
T |
item |
|
Returns
RemoveAt(int)
Declaration
public void RemoveAt(int index)
Parameters
Type |
Name |
Description |
int |
index |
|
Implements
Extension Methods