Click or drag to resize
RestrictedAccessDictionaryTKey, TValue Class
A thin wrapper around Dictionary that allows access permissions to be set. Any changes not allowed result in an exception.
Inheritance Hierarchy
SystemObject
  Bio.UtilRestrictedAccessDictionaryTKey, TValue

Namespace: Bio.Util
Assembly: Bio.Core (in Bio.Core.dll) Version: 2.0.0.1 (2.0.0.1)
Syntax
public class RestrictedAccessDictionary<TKey, TValue> : IDictionary<TKey, TValue>, 
	ICollection<KeyValuePair<TKey, TValue>>, IEnumerable<KeyValuePair<TKey, TValue>>, 
	IEnumerable

Type Parameters

TKey
The type of the key
TValue
The type of the value

The RestrictedAccessDictionaryTKey, TValue type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyAddIsAllowed
True if and only if this dictionary allows elements to be added.
Public propertyChangeElementsIsAllowed
True if and only if this dictionary allows elements to change
Public propertyCount
Public propertyIsReadOnly
Public propertyItem
Public propertyKeys
Public propertyRemoveIsAllowed
True if and only if this dictionary allows elments to be removed.
Public propertyValues
Top
Methods
  NameDescription
Public methodAdd(KeyValuePairTKey, TValue)
Public methodAdd(TKey, TValue)
Public methodClear
Public methodContains
Public methodContainsKey
Public methodCopyTo
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetEnumerator
Enumerate the KeyValuePairs of the dictionary
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemove(KeyValuePairTKey, TValue)
Remove an item from a restricted dictionary if that is allowd. It is not, raise an exception.
Public methodRemove(TKey)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTryGetValue
Top
Extension Methods
  NameDescription
Public Extension MethodAppendKeyValuePairTKey, TValue(KeyValuePairTKey, TValue)Overloaded.
Yield an Enumeration of the list with the item appended to the end
(Defined by IEnumerableExtensions.)
Public Extension MethodAppendKeyValuePairTKey, TValue(IEnumerableKeyValuePairTKey, TValue)Overloaded.
Yield a concatenation of the two Enumerable lists
(Defined by IEnumerableExtensions.)
Public Extension MethodElementAtKeyValuePairTKey, TValue
Returns the element at a specified index in a sequence.
(Defined by IEnumerableExtensions.)
Public Extension MethodForEachKeyValuePairTKey, TValue(ActionKeyValuePairTKey, TValue)Overloaded.
Calls an action on each element of a sequence. The action takes one argument: an element. It has no return value.
(Defined by IEnumerableExtensions.)
Public Extension MethodForEachKeyValuePairTKey, TValue(ActionKeyValuePairTKey, TValue, Int32)Overloaded.
Calls an action on each element of a sequence. The action takes two arguments: an element and the index of the element. It has no return value.
(Defined by IEnumerableExtensions.)
Public Extension MethodShuffleKeyValuePairTKey, TValue
Shuffles the elements of a sequence.
(Defined by IEnumerableExtensions.)
Public Extension MethodStringJoinOverloaded.
Creates a string from a sequence of elements. No delimiter is used.
(Defined by IEnumerableExtensions.)
Public Extension MethodStringJoin(String)Overloaded.
Creates a delimited string from a sequence of elements.
(Defined by IEnumerableExtensions.)
Public Extension MethodStringJoin(String, Int32, String)Overloaded.
Creates a delimited string from a sequence of elements. At most maxLength elements will be used and "..." shows that more elements were in the list.
(Defined by IEnumerableExtensions.)
Public Extension MethodSubSequenceKeyValuePairTKey, TValue
Take the items from a sequence starting with item # start (index 0) and contining for count items.
(Defined by IEnumerableExtensions.)
Public Extension MethodToHashSetKeyValuePairTKey, TValueOverloaded.
Creates a HashSet from a sequence. If the sequence is already a HashSet, a new HashSet is still created.
(Defined by IEnumerableExtensions.)
Public Extension MethodToHashSetKeyValuePairTKey, TValue(IEqualityComparerKeyValuePairTKey, TValue)Overloaded.
Creates a HashSet from a sequence. If the sequence is already a HashSet, a new HashSet is still created.
(Defined by IEnumerableExtensions.)
Public Extension MethodToQueueKeyValuePairTKey, TValue
Creates a Queue from a sequence. If the sequence is already a Queue, a new Queue is still created.
(Defined by IEnumerableExtensions.)
Top
See Also