Class JsonSerializer
Inheritance
JsonSerializer
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 Parameters
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 Parameters
DeserializeList<T>(string)
Declaration
public static List<T> DeserializeList<T>(string json)
Parameters
| Type |
Name |
Description |
| string |
json |
|
Returns
Type Parameters
DeserializeNamedDictionary<TValue>(string)
Declaration
public static Dictionary<string, TValue> DeserializeNamedDictionary<TValue>(string json)
Parameters
| Type |
Name |
Description |
| string |
json |
|
Returns
Type Parameters
SerializeList<T>(IList<T>)
Declaration
public static string SerializeList<T>(IList<T> value)
Parameters
| Type |
Name |
Description |
| IList<T> |
value |
|
Returns
Type Parameters
SerializeNamedDictionary<TValue>(Dictionary<string, TValue>)
Declaration
public static string SerializeNamedDictionary<TValue>(Dictionary<string, TValue> values)
Parameters
Returns
Type Parameters