Class YamlReader
Read model from a YAML file
Assembly: PayrollEngine.Client.Core.dll
Syntax
public static class YamlReader
Methods
FromFileAsync<T>(string)
Load YAML file and deserialize directly to Exchange object
Declaration
public static Task<T> FromFileAsync<T>(string fileName) where T : class
Parameters
| Type |
Name |
Description |
| string |
fileName |
Name of the file
|
Returns
Type Parameters
FromYaml<T>(string)
Deserialize YAML to object
Declaration
public static T FromYaml<T>(string yaml) where T : class
Parameters
| Type |
Name |
Description |
| string |
yaml |
Yaml content
|
Returns
Type Parameters