Encode Method
Encode()
Write out the encoding of the structure defined, returning a new byte array containing the result.
C#
public byte[] Encode()
Returns
System.Byte[]
A new byte array containing the encoding.
Exceptions
Type | Condition |
---|---|
TlvException | The method is called before a schema has been completely entered. |
Remarks
Call this only after the schema has been completely entered (the outermost Nested TLV has been closed). If you call this before the schema has been completely entered, it can throw an exception.