Add Method
Definition
- Namespace
- Cuemon
- Assemblies
- Cuemon.Kernel.dll
Add<T>(Func<T, byte[]>)
Adds a converter for the specified T.
public ConvertibleConverterDictionary Add<T>(Func<T, byte[]> converter) where T : IConvertible
Parameters
Returns
- ConvertibleConverterDictionary
This instance so that additional converters can be configured.
Type Parameters
TThe type that implements IConvertible.
Exceptions
- TypeArgumentOutOfRangeException
Tdoes not implement IConvertible.
Add(Type, Func<IConvertible, byte[]>)
Adds a converter for the specified type.
public ConvertibleConverterDictionary Add(Type type, Func<IConvertible, byte[]> converter)
Parameters
typeTypeThe type that implements IConvertible.
converterFunc<IConvertible, byte[]>The delegate that converts an IConvertible instance to a byte array.
Returns
- ConvertibleConverterDictionary
This instance so that additional converters can be configured.
Exceptions
- ArgumentNullException
typeis null.- ArgumentOutOfRangeException
typedoes not implement IConvertible.