Use the JSON file Rather than Registry. There is not an equivalent...
[DataContract]
public class SomeInfo
{
[DataMember]
public string KeyName { get; set; }
}
public class ConfigManager
{
public SomeInfo LoadFromJson(string sFilePath)
{
var vJsonText = File.ReadAllText(sFilePath);
// .NET CORE
var vOption = new JsonSerializerOptions
{
WriteIndented = true,
PropertyNamingPolicy = null,
IgnoreNullValues = true,
Encoder = JavaScriptEncoder.Create(UnicodeRanges.All)
};
return JsonSerializer.Deserialize<SomeInfo>(vJsonText, vOption);
}
}
--- JSON FILE
{
"KeyName" : "Value"
}