ConversionsCompareTKey, TValue Method |
Compares two dictionaries.
Namespace:
ShellBoost.Core.Utilities
Assembly:
ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax public static bool Compare<TKey, TValue>(
this Dictionary<TKey, TValue> dic1,
Dictionary<TKey, TValue> dic2,
IEqualityComparer<TValue> comparer = null
)
Parameters
- dic1
- Type: System.Collections.GenericDictionaryTKey, TValue
The first dictionary. - dic2
- Type: System.Collections.GenericDictionaryTKey, TValue
The second dictionary. - comparer (Optional)
- Type: System.Collections.GenericIEqualityComparerTValue
The equality comparer to use. If null is specified, the Default equality comparer will be used.
Type Parameters
- TKey
- The type of the dictionaries keys.
- TValue
- The type of the dictionaries values.
Return Value
Type:
Booleantrue if the two dictionaries contains the same values,
false otherwise.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
DictionaryTKey,
TValue. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also