Click or drag to resize

UnorderedKeyedCollectionTKey, TItem Class

This is preliminary documentation and is subject to change.

An unordered dictionary whose keys lies in the items.
Inheritance Hierarchy
SystemObject
  WikiClientLibrary.Wikibase.InfrastructuresUnorderedKeyedCollectionTKey, TItem
    WikiClientLibrary.WikibaseEntitySiteLinkCollection

Namespace: WikiClientLibrary.Wikibase.Infrastructures
Assembly: WikiClientLibrary.Wikibase (in WikiClientLibrary.Wikibase.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax
public abstract class UnorderedKeyedCollection<TKey, TItem> : ICollection<TItem>, 
	IEnumerable<TItem>, IEnumerable, ICollection

Type Parameters

TKey
Type of the key.
TItem
Type of the item.

The UnorderedKeyedCollectionTKey, TItem type exposes the following members.

Constructors
 NameDescription
Public methodUnorderedKeyedCollectionTKey, TItemInitializes a new instance of the UnorderedKeyedCollectionTKey, TItem class
Public methodUnorderedKeyedCollectionTKey, TItem(IEqualityComparerTKey)Initializes a new instance of the UnorderedKeyedCollectionTKey, TItem class
Top
Properties
 NameDescription
Public propertyCountGets the number of elements contained in the ICollectionT.
Public propertyIsReadOnlyGets a value indicating whether the ICollectionT is read-only.
Public propertyItem 
Top
Methods
 NameDescription
Public methodAddAdds an item to the ICollectionT.
Protected methodAssertMutable 
Protected methodChangeItemKey 
Public methodClearRemoves all items from the ICollectionT.
Public methodContainsDetermines whether the ICollectionT contains a specific value.
Public methodContainsKey 
Public methodCopyTo(Array, Int32)Copies the elements of the ICollection to an Array, starting at a particular Array index.
Public methodCopyTo(TItem, Int32)Copies the elements of the ICollectionT to an Array, starting at a particular Array index.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetEnumeratorReturns an enumerator that iterates through the collection.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Protected methodGetKeyForItem 
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodRemoveRemoves the first occurrence of a specific object from the ICollectionT.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Explicit Interface Implementations
 NameDescription
Explicit interface implementationPrivate propertyICollectionIsSynchronizedGets a value indicating whether access to the ICollection is synchronized (thread safe).
Explicit interface implementationPrivate propertyICollectionSyncRootGets an object that can be used to synchronize access to the ICollection.
Explicit interface implementationPrivate methodIEnumerableGetEnumeratorReturns an enumerator that iterates through a collection.
Top
Remarks
The key cannot be null in the collection.
See Also