ToByteArray Method
Definition
- Namespace
- Cuemon
- Assemblies
- Cuemon.Core.dll
ToByteArray(IDecorator<string>, Action<EncodingOptions>)
Converts the enclosed string of the specified decorator to its equivalent byte array representation.
public static byte[] ToByteArray(this IDecorator<string> decorator, Action<EncodingOptions> setup = null)
Parameters
decoratorIDecorator<string>The IDecorator<T> to extend.
setupAction<EncodingOptions>The EncodingOptions which may be configured.
Returns
Exceptions
- ArgumentNullException
decoratorcannot be null.- InvalidEnumArgumentException
setupwas initialized with an invalid Preamble.