TwoWayDictionaryTFirst, TSecond Class |
Namespace: Accord.Collections
[SerializableAttribute] public sealed class TwoWayDictionary<TFirst, TSecond> : IEnumerable, IDictionary, ICollection
The TwoWayDictionaryTFirst, TSecond type exposes the following members.
Name | Description | |
---|---|---|
TwoWayDictionaryTFirst, TSecond |
Initializes a new instance of the TwoWayDictionaryTFirst, TSecond class
that is empty, has the default initial capacity, and uses the default equality comparer
for the key type.
| |
TwoWayDictionaryTFirst, TSecond(IDictionaryTFirst, TSecond) |
Initializes a new instance of the TwoWayDictionaryTFirst, TSecond class
that contains elements copied from the specified dictionary and uses the default equality
comparer for the key type.
| |
TwoWayDictionaryTFirst, TSecond(Int32) |
Initializes a new instance of the TwoWayDictionaryTFirst, TSecond class
that is empty, has the specified initial capacity, and uses the default equality comparer
for the key type.
|
Name | Description | |
---|---|---|
Count |
Gets the number of elements contained in this TwoWayDictionaryTFirst, TSecond.
| |
IsReadOnly |
Gets a value indicating whether the ICollectionT is read-only.
| |
Item |
Gets or sets the element with the specified key.
| |
Keys |
Gets an ICollectionT containing the keys of the IDictionaryTKey, TValue.
| |
Reverse |
Gets the reverse dictionary that maps values back to keys.
| |
Values |
Gets an ICollectionT containing the values in the IDictionaryTKey, TValue.
|
Name | Description | |
---|---|---|
Add |
Adds an element with the provided key and value to the IDictionaryTKey, TValue.
| |
Clear |
Removes all items from the ICollectionT.
| |
ContainsKey |
Determines whether the IDictionaryTKey, TValue contains an element with the specified key.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
GetEnumerator |
Returns an enumerator that iterates through the collection.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Remove |
Removes the element with the specified key from the IDictionaryTKey, TValue.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
TryGetValue |
Gets the value associated with the specified key.
|
Name | Description | |
---|---|---|
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.) | |
SetEqualsKeyValuePairTFirst, TSecond |
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.) | |
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.) |