Show / Hide Table of Contents

Class SharedDictionary<TKey, TValue>

Inheritance
object
SharedDictionary<TKey, TValue>
Implements
IDictionary<TKey, TValue>
ICollection<KeyValuePair<TKey, TValue>>
IEnumerable<KeyValuePair<TKey, TValue>>
IEnumerable
IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DotNetNuke.Collections.Internal
Assembly: DotNetNuke.dll
Syntax
public class SharedDictionary<TKey, TValue> : IDictionary<TKey, TValue>, ICollection<KeyValuePair<TKey, TValue>>, IEnumerable<KeyValuePair<TKey, TValue>>, IEnumerable, IDisposable
Type Parameters
Name Description
TKey
TValue

Constructors

SharedDictionary()

Declaration
public SharedDictionary()

SharedDictionary(ILockStrategy)

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

SharedDictionary(LockingStrategy)

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

Properties

Count

Declaration
public int Count { get; }
Property Value
Type Description
int

IsReadOnly

Declaration
public bool IsReadOnly { get; }
Property Value
Type Description
bool

this[TKey]

Declaration
public TValue this[TKey key] { get; set; }
Parameters
Type Name Description
TKey key
Property Value
Type Description
TValue

Keys

Declaration
public ICollection<TKey> Keys { get; }
Property Value
Type Description
ICollection<TKey>

Values

Declaration
public ICollection<TValue> Values { get; }
Property Value
Type Description
ICollection<TValue>

Methods

Add(KeyValuePair<TKey, TValue>)

Declaration
public void Add(KeyValuePair<TKey, TValue> item)
Parameters
Type Name Description
KeyValuePair<TKey, TValue> item

Add(TKey, TValue)

Declaration
public void Add(TKey key, TValue value)
Parameters
Type Name Description
TKey key
TValue value

Clear()

Declaration
public void Clear()

Contains(KeyValuePair<TKey, TValue>)

Declaration
public bool Contains(KeyValuePair<TKey, TValue> item)
Parameters
Type Name Description
KeyValuePair<TKey, TValue> item
Returns
Type Description
bool

ContainsKey(TKey)

Declaration
public bool ContainsKey(TKey key)
Parameters
Type Name Description
TKey key
Returns
Type Description
bool

CopyTo(KeyValuePair<TKey, TValue>[], int)

Declaration
public void CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
Parameters
Type Name Description
KeyValuePair<TKey, TValue>[] array
int arrayIndex

Dispose()

Declaration
public void Dispose()

Dispose(bool)

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

~SharedDictionary()

Declaration
protected ~SharedDictionary()

GetEnumerator()

Declaration
public IEnumerator GetEnumerator()
Returns
Type Description
IEnumerator

GetReadLock()

Declaration
public ISharedCollectionLock GetReadLock()
Returns
Type Description
ISharedCollectionLock

GetReadLock(int)

Declaration
public ISharedCollectionLock GetReadLock(int millisecondTimeout)
Parameters
Type Name Description
int millisecondTimeout
Returns
Type Description
ISharedCollectionLock

GetReadLock(TimeSpan)

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

GetWriteLock()

Declaration
public ISharedCollectionLock GetWriteLock()
Returns
Type Description
ISharedCollectionLock

GetWriteLock(int)

Declaration
public ISharedCollectionLock GetWriteLock(int millisecondTimeout)
Parameters
Type Name Description
int millisecondTimeout
Returns
Type Description
ISharedCollectionLock

GetWriteLock(TimeSpan)

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

IEnumerable_GetEnumerator()

Declaration
public IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable_GetEnumerator()
Returns
Type Description
IEnumerator<KeyValuePair<TKey, TValue>>

Remove(KeyValuePair<TKey, TValue>)

Declaration
public bool Remove(KeyValuePair<TKey, TValue> item)
Parameters
Type Name Description
KeyValuePair<TKey, TValue> item
Returns
Type Description
bool

Remove(TKey)

Declaration
public bool Remove(TKey key)
Parameters
Type Name Description
TKey key
Returns
Type Description
bool

TryGetValue(TKey, out TValue)

Declaration
public bool TryGetValue(TKey key, out TValue value)
Parameters
Type Name Description
TKey key
TValue value
Returns
Type Description
bool

Implements

IDictionary<TKey, TValue>
ICollection<T>
IEnumerable<T>
IEnumerable
IDisposable

Extension Methods

CollectionExtensions.ForEach<TType>(IEnumerable<TType>, Action<TType>)
PagingExtensions.InPagesOf<T>(IEnumerable<T>, int)
PagingExtensions.ToPagedList<T>(IEnumerable<T>, int, int)
JsonExtensionsWeb.ToJson(object)
Back to top by the community, for the community... #DNNCMS