Class StringSerializer
Class that ensures correct string serialization.
Implements
IYamlSerializable
IYamlSerializableFactory
Inherited Members
Namespace: Evergine.Common.Serialization.YAML
Assembly: Evergine.Common.dll
Syntax
public class StringSerializer : CustomYamlScalarSerializer, IYamlSerializable, IYamlSerializableFactory
Properties
Type
Gets the type of the scalar.
Declaration
public override Type Type { get; }
Property Value
Type | Description |
---|---|
Type |
Overrides
Methods
ConvertFromString(string)
Converts a string into the scalar type instance.
Declaration
public override object ConvertFromString(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | The string value containing the scalar info. |
Returns
Type | Description |
---|---|
object | The scalar type instance. |
Overrides
ConvertToString(object)
Converts the scalar instance into a string.
Declaration
public override string ConvertToString(object value)
Parameters
Type | Name | Description |
---|---|---|
object | value | The scalar instance. |
Returns
Type | Description |
---|---|
string | A string containing the scalar info. |
Overrides
Implements
SharpYaml.Serialization.IYamlSerializable
SharpYaml.Serialization.IYamlSerializableFactory