Table of Contents

Method ReadFromJsonFile

Namespace
UICatalog.Scenarios
Assembly
UICatalog.dll

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 string

The 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.