Show / Hide Table of Contents

Class JsonReader

Read model from a JSON file

Inheritance
object
JsonReader
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 JsonReader

Methods

FromFileAsync<T>(string)

Read object from JSON file

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

FromJson<T>(string)

Read object from JSON string

Declaration
public static T FromJson<T>(string json) where T : class
Parameters
Type Name Description
string json

Object JSON

Returns
Type Description
T
Type Parameters
Name Description
T
☀
☾
Back to top Generated by DocFX