Click or drag to resize

DefinitionalObject.DictionaryItemsAreSameDefinition<TKey, TValue> Method

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

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

Parameters

first
Type: System.Collections.Generic.IDictionary<TKey, TValue>
The first dictionary, which may be null.
second
Type: System.Collections.Generic.IDictionary<TKey, 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
true if the two dictionaries contain items with the same definition; otherwise false.
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