Table of Contents

TryGetValue Method

Definition

Namespace
Cuemon
Assemblies
Cuemon.Kernel.dll
Source
src/Cuemon.Kernel/ConvertibleConverterDictionary.cs

TryGetValue(Type, out Func<IConvertible, byte[]>)

Gets the converter associated with the specified key.

public bool TryGetValue(Type key, out Func<IConvertible, byte[]> value)

Parameters

key Type

The type whose associated converter to retrieve.

value Func<IConvertible, byte[]>

When this method returns, contains the converter associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter.

Returns

bool

true if this dictionary contains a converter for key; otherwise, false.

Exceptions

ArgumentNullException

key is null.