Class FileWriter
Write exchange object to file
Inherited Members
Namespace: PayrollEngine.Client.Exchange
Assembly: PayrollEngine.Client.Core.dll
Syntax
public static class FileWriter
Methods
WriteAsync<T>(T, string)
Writes object to file
Declaration
public static Task WriteAsync<T>(T obj, string fileName) where T : class
Parameters
| Type | Name | Description |
|---|---|---|
| T | obj | The object to store |
| string | fileName | Name of the file |
Returns
| Type | Description |
|---|---|
| Task |
Type Parameters
| Name | Description |
|---|---|
| T |
Remarks
Supported file types JSON/YAML