DataFactoryBaseDeserializeJsonT Method
Reads a Json disk file and populates a factory object.
Namespace: Common.Core.ClassesAssembly: Common.Core (in Common.Core.dll) Version: 2.1.5
protected static T DeserializeJson<T>(
string path,
string file,
JsonSerializerOptions options
)
where T : DataFactoryBase
- path String
- Location of the data file.
- file String
- Name of the file.
- options JsonSerializerOptions
- Json serializer options.
- T
- Type of factory to populate.
T is returned if the factory could not be populated.