ReadOnlyKeyedCollectionTKey, TValue Class |
Namespace: Accord.Collections
[SerializableAttribute] public abstract class ReadOnlyKeyedCollection<TKey, TValue> : ReadOnlyCollection<TValue>, IEnumerable
The ReadOnlyKeyedCollectionTKey, TValue type exposes the following members.
Name | Description | |
---|---|---|
ReadOnlyKeyedCollectionTKey, TValue |
Initializes a new instance of the
ReadOnlyKeyedCollectionTKey, TValue class.
|
Name | Description | |
---|---|---|
Count | Gets the number of elements contained in the ReadOnlyCollectionT instance. (Inherited from ReadOnlyCollectionTValue.) | |
IsReadOnly |
Returns true.
| |
ItemInt32 | Gets the element at the specified index. (Inherited from ReadOnlyCollectionTValue.) | |
ItemTKey |
Gets or sets the element with the specified key.
| |
Items | Returns the IListT that the ReadOnlyCollectionT wraps. (Inherited from ReadOnlyCollectionTValue.) | |
Keys |
Gets an ICollectionT containing the keys of the IDictionaryTKey, TValue.
| |
Values |
Gets an ICollectionT containing the values in the IDictionaryTKey, TValue.
|
Name | Description | |
---|---|---|
Add(KeyValuePairTKey, TValue) |
This method is not supported, as this is a read-only collection.
| |
Add(KeyValuePairTValue, TKey) |
This method is not supported, as this is a read-only collection.
| |
Add(TKey, TValue) |
This method is not supported, as this is a read-only collection.
| |
Clear |
Not supported.
| |
Contains(T) | Determines whether an element is in the ReadOnlyCollectionT. (Inherited from ReadOnlyCollectionTValue.) | |
Contains(KeyValuePairTKey, TValue) |
Determines whether the ICollectionT contains a specific value.
| |
ContainsKey |
Determines whether the IDictionaryTKey, TValue contains an element with the specified key.
| |
CopyTo(T, Int32) | Copies the entire ReadOnlyCollectionT to a compatible one-dimensional Array, starting at the specified index of the target array. (Inherited from ReadOnlyCollectionTValue.) | |
CopyTo(KeyValuePairTKey, TValue, Int32) |
Copies the elements of the ICollection to an Array, starting at a particular Array index.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetEnumerator | Returns an enumerator that iterates through the ReadOnlyCollectionT. (Inherited from ReadOnlyCollectionTValue.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetKeyForItem |
When implemented in a derived class, extracts the key from the specified element.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IndexOf | Searches for the specified object and returns the zero-based index of the first occurrence within the entire ReadOnlyCollectionT. (Inherited from ReadOnlyCollectionTValue.) | |
Insert |
This method is not supported, as this is a read-only collection.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Remove(KeyValuePairTKey, TValue) |
This method is not supported, as this is a read-only collection.
| |
Remove(TKey) |
This method is not supported, as this is a read-only collection.
| |
RemoveAt |
This method is not supported, as this is a read-only collection.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
TryGetValue |
Gets the value associated with the specified key.
|
Name | Description | |
---|---|---|
ApplyTValue, TResult(FuncTValue, TResult) | Overloaded.
Applies a function to every element of the array.
(Defined by Matrix.) | |
ApplyTValue, TResult(FuncTValue, TResult, TResult) | Overloaded.
Applies a function to every element of the array.
(Defined by Matrix.) | |
HasMethod |
Checks whether an object implements a method with the given name.
(Defined by ExtensionMethods.) | |
IsEqual |
Compares two objects for equality, performing an elementwise
comparison if the elements are vectors or matrices.
(Defined by Matrix.) | |
SetEqualsKeyValuePairTKey, TValue(IEnumerableKeyValuePairTKey, TValue) | Overloaded.
Compares two enumerables for set equality. Two
enumerables are set equal if they contain the
same elements, but not necessarily in the same
order.
(Defined by Matrix.) | |
SetEqualsTValue(IEnumerableTValue) | Overloaded. (Defined by Matrix.) | |
ShuffleTValue |
Shuffles a collection.
(Defined by Vector.) | |
To(Type) | Overloaded.
Converts an object into another type, irrespective of whether
the conversion can be done at compile time or not. This can be
used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.) | |
ToT | Overloaded.
Converts an object into another type, irrespective of whether
the conversion can be done at compile time or not. This can be
used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.) |