Table of Contents

HasDictionaryImplementation Method

Definition

Namespace
Cuemon.Extensions
Assemblies
Cuemon.Extensions.Core.dll
Source
src/Cuemon.Extensions.Core/TypeExtensions.cs

HasDictionaryImplementation(Type)

Determines whether the specified type implements either IDictionary, IDictionary<TKey, TValue> or IReadOnlyDictionary<TKey, TValue>.

public static bool HasDictionaryImplementation(this Type type)

Parameters

type Type

The Type to extend.

Returns

bool

true if the specified type implements either IDictionary, IDictionary<TKey, TValue> or IReadOnlyDictionary<TKey, TValue>; otherwise, false.

Exceptions

ArgumentNullException

type cannot be null.