• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class SharedList<T>

An implementation designed to be shared across threads.

Inheritance
System.Object
SharedList<T>
Implements
IDisposable
Namespace: DotNetNuke.Collections.Internal
Assembly: DotNetNuke.dll
Syntax
public class SharedList<T> : IList<T>
Type Parameters
Name Description
T

The type of value in the list.

Constructors

| Improve this Doc View Source

SharedList()

Initializes a new instance of the SharedList<T> class.

Declaration
public SharedList()
| Improve this Doc View Source

SharedList(ILockStrategy)

Initializes a new instance of the SharedList<T> class.

Declaration
public SharedList(ILockStrategy lockStrategy)
Parameters
Type Name Description
ILockStrategy lockStrategy

The locking strategy to use.

| Improve this Doc View Source

SharedList(LockingStrategy)

Initializes a new instance of the SharedList<T> class.

Declaration
public SharedList(LockingStrategy strategy)
Parameters
Type Name Description
LockingStrategy strategy

The locking strategy to use.

Properties

| Improve this Doc View Source

Count

An implementation designed to be shared across threads.

Declaration
public int Count { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

IsReadOnly

An implementation designed to be shared across threads.

Declaration
public bool IsReadOnly { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Item[Int32]

An implementation designed to be shared across threads.

Declaration
public T this[int index] { get; set; }
Parameters
Type Name Description
System.Int32 index
Property Value
Type Description
T

Methods

| Improve this Doc View Source

Add(T)

An implementation designed to be shared across threads.

Declaration
public void Add(T item)
Parameters
Type Name Description
T item
| Improve this Doc View Source

Clear()

An implementation designed to be shared across threads.

Declaration
public void Clear()
| Improve this Doc View Source

Contains(T)

An implementation designed to be shared across threads.

Declaration
public bool Contains(T item)
Parameters
Type Name Description
T item
Returns
Type Description
System.Boolean
| Improve this Doc View Source

CopyTo(T[], Int32)

An implementation designed to be shared across threads.

Declaration
public void CopyTo(T[] array, int arrayIndex)
Parameters
Type Name Description
T[] array
System.Int32 arrayIndex
| Improve this Doc View Source

Dispose()

An implementation designed to be shared across threads.

Declaration
public void Dispose()
| Improve this Doc View Source

Dispose(Boolean)

Disposes this instance resources.

Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type Name Description
System.Boolean disposing

Indicates if this instance is currently disposing.

| Improve this Doc View Source

EnsureNotDisposed()

Ensures the instance is not disposed.

Declaration
public void EnsureNotDisposed()
| Improve this Doc View Source

Finalize()

Finalizes an instance of the SharedList<T> class.

Declaration
protected void Finalize()
| Improve this Doc View Source

GetEnumerator()

An implementation designed to be shared across threads.

Declaration
public IEnumerator<T> GetEnumerator()
Returns
Type Description
IEnumerator<T>
| Improve this Doc View Source

GetEnumerator1()

Gets an enumerator to iterate through the collection.

Declaration
public IEnumerator GetEnumerator1()
Returns
Type Description
IEnumerator

An enumerator that can be used to iterate through the collection.

| Improve this Doc View Source

GetReadLock()

Gets a read lock on the resource.

Declaration
public ISharedCollectionLock GetReadLock()
Returns
Type Description
ISharedCollectionLock

An ISharedCollectionLock instance.

| Improve this Doc View Source

GetReadLock(Int32)

Gets a read lock on the resource for the specified amount of time.

Declaration
public ISharedCollectionLock GetReadLock(int millisecondTimeout)
Parameters
Type Name Description
System.Int32 millisecondTimeout

The number of milliseconds to lock for.

Returns
Type Description
ISharedCollectionLock

An ISharedCollectionLock instance.

| Improve this Doc View Source

GetReadLock(TimeSpan)

Gets a read lock on the resource for the specified amount of time.

Declaration
public ISharedCollectionLock GetReadLock(TimeSpan timeOut)
Parameters
Type Name Description
TimeSpan timeOut

The amount of time to lock for.

Returns
Type Description
ISharedCollectionLock

An ISharedCollectionLock instance.

| Improve this Doc View Source

GetWriteLock()

Gets a write lock on the resource for the specified amount of time.

Declaration
public ISharedCollectionLock GetWriteLock()
Returns
Type Description
ISharedCollectionLock

An ISharedCollectionLock instance.

| Improve this Doc View Source

GetWriteLock(Int32)

Gets a write lock on the resource for the specified amount of time.

Declaration
public ISharedCollectionLock GetWriteLock(int millisecondTimeout)
Parameters
Type Name Description
System.Int32 millisecondTimeout

The number of milliseconds to lock for.

Returns
Type Description
ISharedCollectionLock

An ISharedCollectionLock instance.

| Improve this Doc View Source

GetWriteLock(TimeSpan)

Gets a write lock on the resource for the specified amount of time.

Declaration
public ISharedCollectionLock GetWriteLock(TimeSpan timeOut)
Parameters
Type Name Description
TimeSpan timeOut

The amount of time to lock for.

Returns
Type Description
ISharedCollectionLock

An ISharedCollectionLock instance.

| Improve this Doc View Source

IndexOf(T)

An implementation designed to be shared across threads.

Declaration
public int IndexOf(T item)
Parameters
Type Name Description
T item
Returns
Type Description
System.Int32
| Improve this Doc View Source

Insert(Int32, T)

An implementation designed to be shared across threads.

Declaration
public void Insert(int index, T item)
Parameters
Type Name Description
System.Int32 index
T item
| Improve this Doc View Source

Remove(T)

An implementation designed to be shared across threads.

Declaration
public bool Remove(T item)
Parameters
Type Name Description
T item
Returns
Type Description
System.Boolean
| Improve this Doc View Source

RemoveAt(Int32)

An implementation designed to be shared across threads.

Declaration
public void RemoveAt(int index)
Parameters
Type Name Description
System.Int32 index

Implements

IDisposable

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS