Table of Contents

RegisterConvertible Method

Definition

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

RegisterConvertible<T>(Func<T, byte[]>)

Registers a custom converter for the specified IConvertible implementation.

public static void RegisterConvertible<T>(Func<T, byte[]> converter) where T : IConvertible

Parameters

converter Func<T, byte[]>

The delegate that converts an instance of T to a byte array.

Type Parameters

T

The type of the IConvertible implementation to register.

Exceptions

ArgumentNullException

converter is null.