Class SerializedParamConverter
Implements
Inherited Members
Namespace: LemonEdge.Client.Core
Assembly: LemonEdge.ClientCore.dll
Syntax
public class SerializedParamConverter : ISerializedParamConverter
Constructors
SerializedParamConverter(IFactoryInjector)
Declaration
public SerializedParamConverter(IFactoryInjector factory)
Parameters
| Type | Name | Description |
|---|---|---|
| IFactoryInjector | factory |
Methods
GetParam(byte[])
Create a SerializedParam from a serial byte array.
Declaration
public 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
public 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
public 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
public 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. |