Click or drag to resize

ConversionsCompareTKey, TValue Method

Compares two dictionaries.

Namespace:  callback.ShellBoost.Core.Utilities
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax
C#
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: Boolean
true 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