Show / Hide Table of Contents

Class JsonSerializer

Inheritance
object
JsonSerializer
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: PayrollEngine.Serialization
Assembly: PayrollEngine.Core.dll
Syntax
public static class JsonSerializer

Methods

DeserializeFromFileAsync<T>(string)

Declaration
public static Task<T> DeserializeFromFileAsync<T>(string fileName)
Parameters
Type Name Description
string fileName
Returns
Type Description
Task<T>
Type Parameters
Name Description
T

DeserializeFromResourceAsync<T>(Type, string)

Declaration
public static Task<T> DeserializeFromResourceAsync<T>(Type type, string resourceName)
Parameters
Type Name Description
Type type
string resourceName
Returns
Type Description
Task<T>
Type Parameters
Name Description
T

DeserializeList<T>(string)

Declaration
public static List<T> DeserializeList<T>(string json)
Parameters
Type Name Description
string json
Returns
Type Description
List<T>
Type Parameters
Name Description
T

DeserializeNamedDictionary<TValue>(string)

Declaration
public static Dictionary<string, TValue> DeserializeNamedDictionary<TValue>(string json)
Parameters
Type Name Description
string json
Returns
Type Description
Dictionary<string, TValue>
Type Parameters
Name Description
TValue

SerializeList<T>(IList<T>)

Declaration
public static string SerializeList<T>(IList<T> value)
Parameters
Type Name Description
IList<T> value
Returns
Type Description
string
Type Parameters
Name Description
T

SerializeNamedDictionary<TValue>(Dictionary<string, TValue>)

Declaration
public static string SerializeNamedDictionary<TValue>(Dictionary<string, TValue> values)
Parameters
Type Name Description
Dictionary<string, TValue> values
Returns
Type Description
string
Type Parameters
Name Description
TValue
☀
☾
Back to top Generated by DocFX