Click or drag to resize

DefinitionalObjectDictionaryItemsAreSameDefinitionTKey, TValue Method

Determines if two dictionaries contain items with the same definition, or are both .

Namespace:  AGI.Foundation.Infrastructure
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax
public static bool DictionaryItemsAreSameDefinition<TKey, TValue>(
	IDictionary<TKey, TValue> first,
	IDictionary<TKey, TValue> second
)

Parameters

first
Type: System.Collections.GenericIDictionaryTKey, TValue
The first dictionary, which may be null.
second
Type: System.Collections.GenericIDictionaryTKey, TValue
The second dictionary, which may be null.

Type Parameters

TKey
The type of the keys in the dictionary.
TValue
The type of the values in the dictionary.

Return Value

Type: Boolean
if the two dictionaries contain items with the same definition; otherwise .
Remarks
If an item in first implements IEquatableDefinition, this method will use IsSameDefinition(Object) to compare the objects. Otherwise, it will use the Equals(Object) method.
See Also