DataFactoryBaseDeserializeJsonT Method

Reads a Json disk file and populates a factory object.

Definition

Namespace: Common.Core.Classes
Assembly: Common.Core (in Common.Core.dll) Version: 2.1.5
C#
protected static T DeserializeJson<T>(
	string path,
	string file,
	JsonSerializerOptions options
)
where T : DataFactoryBase

Parameters

path  String
Location of the data file.
file  String
Name of the file.
options  JsonSerializerOptions
Json serializer options.

Type Parameters

T
Type of factory to populate.

Return Value

T
is returned if the factory could not be populated.

See Also