Interface ISerializedParamConverter
Namespace: LemonEdge.Client.UI.API.Param
Assembly: LemonEdge.Client.UI.API.dll
Syntax
public interface ISerializedParamConverter
Methods
GetParam(byte[])
Create a SerializedParam from a serial byte array.
Declaration
SerializedParam GetParam(byte[] serializedInstance)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | serializedInstance | The byte array. |
Returns
| Type | Description |
|---|---|
| SerializedParam | The instance. |
GetParam(string)
Create a SerializedParam from a string.
Declaration
SerializedParam GetParam(string serializedInstance)
Parameters
| Type | Name | Description |
|---|---|---|
| string | serializedInstance | The string. |
Returns
| Type | Description |
|---|---|
| SerializedParam | The instance. |
GetParam(Type, byte[]?, bool)
Create a SerializedParam from a serial byte array and, if unsuccessful, from the type information.
Declaration
SerializedParam GetParam(Type paramType, byte[]? serializedInstance = null, bool throwOnError = true)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | paramType | The parameter type. |
| byte[] | serializedInstance | The byte array. |
| bool | throwOnError | Whether to assert creation by the byte information. |
Returns
| Type | Description |
|---|---|
| SerializedParam | The instance. |
GetParam(Type, string?, bool)
Create a SerializedParam from a string and, if unsuccessful, from the type information.
Declaration
SerializedParam GetParam(Type paramType, string? serializedInstance = null, bool throwOnError = true)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | paramType | The parameter type. |
| string | serializedInstance | The string. |
| bool | throwOnError | Whether to assert creation by the string. |
Returns
| Type | Description |
|---|---|
| SerializedParam | The instance. |