Show / Hide Table of Contents

Class YamlReader

Read model from a YAML file

Inheritance
object
YamlReader
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: PayrollEngine.Client.Exchange
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 Description
Task<T>
Type Parameters
Name Description
T

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 Description
T
Type Parameters
Name Description
T
☀
☾
Back to top Generated by DocFX