Method ReadFromJsonFile
ReadFromJsonFile<T>(string)
Reads an object instance from an Json file.
Object type must have a parameterless constructor.
public static T ReadFromJsonFile<T>(string filePath) where T : new()
Parameters
filePath
stringThe file path to read the object instance from.
Returns
- T
Returns a new instance of the object read from the Json file.
Type Parameters
T
The type of object to read from the file.