HelperKeysEqualTKey, TValue1, TValue2 Method |
Efficiently (log n) test if two dictionaries have the same key set.
Namespace: Bio.UtilAssembly: Bio.Core (in Bio.Core.dll) Version: 2.0.0.1 (2.0.0.1)
Syntax public static bool KeysEqual<TKey, TValue1, TValue2>(
IDictionary<TKey, TValue1> dictionary1,
IDictionary<TKey, TValue2> dictionary2
)
Public Shared Function KeysEqual(Of TKey, TValue1, TValue2) (
dictionary1 As IDictionary(Of TKey, TValue1),
dictionary2 As IDictionary(Of TKey, TValue2)
) As Boolean
public:
generic<typename TKey, typename TValue1, typename TValue2>
static bool KeysEqual(
IDictionary<TKey, TValue1>^ dictionary1,
IDictionary<TKey, TValue2>^ dictionary2
)
static member KeysEqual :
dictionary1 : IDictionary<'TKey, 'TValue1> *
dictionary2 : IDictionary<'TKey, 'TValue2> -> bool
Parameters
- dictionary1
- Type: System.Collections.GenericIDictionaryTKey, TValue1
The first dictionary - dictionary2
- Type: System.Collections.GenericIDictionaryTKey, TValue2
The second dictionary
Type Parameters
- TKey
- The key type of the dictionaries
- TValue1
- The value type of dictionary 1
- TValue2
- The value type of dictionary 2
Return Value
Type:
BooleanTrue if the two key sets are "set equal"; false, otherwise.
See Also