Class UnityYamlUtils
Utility class for parsing YAML content
Inherited Members
Namespace: Serenity.Global.Infrastructure.Utils
Assembly: Serenity.UnityGlobal.Infrastructure.dll
Syntax
public static class UnityYamlUtils
Methods
Escape(string)
Escape special characters in a string
Declaration
public static string Escape(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | The string to escape |
Returns
| Type | Description |
|---|---|
| string | The escaped string |
GetYamlStream(string)
Parse a YAML string into a YamlStream object
Declaration
public static YamlStream GetYamlStream(string yamlString)
Parameters
| Type | Name | Description |
|---|---|---|
| string | yamlString | The YAML string to parse |
Returns
| Type | Description |
|---|---|
| YamlStream | The parsed YamlStream object |
Unescape(string)
Unescape special characters in a string
Declaration
public static string Unescape(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | The string to unescape |
Returns
| Type | Description |
|---|---|
| string | The unescaped string |