Class Yaml
Yaml serialization helpers.
Namespace: NFive.SDK.Plugins.Configuration
Assembly: NFive.SDK.Plugins.dll
Syntax
public static class Yaml
Methods
| Improve this Doc View SourceDeserialize(String, Type)
Deserializes the specified Yaml.
Declaration
public static object Deserialize(string yml, Type type)
Parameters
Type | Name | Description |
---|---|---|
String | yml | The Yaml string. |
Type | type | The type to deserialize as. |
Returns
Type | Description |
---|---|
Object | The deserialized object. |
Deserialize<T>(String)
Deserializes the specified Yaml.
Declaration
public static T Deserialize<T>(string yml)
Parameters
Type | Name | Description |
---|---|---|
String | yml | The Yaml string. |
Returns
Type | Description |
---|---|
T | The deserialized object. |
Type Parameters
Name | Description |
---|---|
T | The type to deserialize as. |
Serialize(Object)
Serializes the specified object.
Declaration
public static string Serialize(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | The object to serialize. |
Returns
Type | Description |
---|---|
String | The Yaml string. |