Method ReadConfiguration
ReadConfiguration<T>(String)
Reads configuration from a local file and deserializes it into an object.
Declaration
[[System.Runtime.CompilerServices.NullableContext(2)]]
public static T? ReadConfiguration<T> (string path);
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | path | Path to the file to read. |
Returns
| Type | Description |
|---|---|
| T | If successful, returns an instance of the object |
Type Parameters
| Name | Description |
|---|---|
| T | Type of object to deserialize. |