Class NaiveLockingList<T>
Provides naive locking for generic lists.
Inheritance
System.Object
NaiveLockingList<T>
Namespace: DotNetNuke.Collections.Internal
Assembly: DotNetNuke.dll
Syntax
public class NaiveLockingList<T> : IList<T>
Type Parameters
Name | Description |
---|---|
T | The type of value in the list. |
Properties
| Improve this Doc View SourceCount
Provides naive locking for generic lists.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
IsReadOnly
Provides naive locking for generic lists.
Declaration
public bool IsReadOnly { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Item[Int32]
Provides naive locking for generic lists.
Declaration
public T this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Property Value
Type | Description |
---|---|
T |
SharedList
Gets access to the underlying SharedList.
Declaration
public SharedList<T> SharedList { get; }
Property Value
Type | Description |
---|---|
SharedList<T> |
Methods
| Improve this Doc View SourceAdd(T)
Provides naive locking for generic lists.
Declaration
public void Add(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item |
Clear()
Provides naive locking for generic lists.
Declaration
public void Clear()
Contains(T)
Provides naive locking for generic lists.
Declaration
public bool Contains(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item |
Returns
Type | Description |
---|---|
System.Boolean |
CopyTo(T[], Int32)
Provides naive locking for generic lists.
Declaration
public void CopyTo(T[] array, int arrayIndex)
Parameters
Type | Name | Description |
---|---|---|
T[] | array | |
System.Int32 | arrayIndex |
GetEnumerator()
Provides naive locking for generic lists.
Declaration
public IEnumerator<T> GetEnumerator()
Returns
Type | Description |
---|---|
IEnumerator<T> |
IndexOf(T)
Provides naive locking for generic lists.
Declaration
public int IndexOf(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item |
Returns
Type | Description |
---|---|
System.Int32 |
Insert(Int32, T)
Provides naive locking for generic lists.
Declaration
public void Insert(int index, T item)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | |
T | item |
Remove(T)
Provides naive locking for generic lists.
Declaration
public bool Remove(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item |
Returns
Type | Description |
---|---|
System.Boolean |
RemoveAt(Int32)
Provides naive locking for generic lists.
Declaration
public void RemoveAt(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |