Config setting to retain aax file after decrypt

This commit is contained in:
Robert McRackan 2020-09-10 09:06:34 -04:00
parent 389761355d
commit 9e1d657f60
5 changed files with 57 additions and 9 deletions

View file

@ -40,8 +40,13 @@ namespace FileManager
return stringCache[propertyName];
}
public T Get<T>(string propertyName) where T : class
=> GetObject(propertyName) is T obj ? obj : default;
public T Get<T>(string propertyName)
{
var o = GetObject(propertyName);
if (o is null) return default;
if (o is JToken jt) return jt.Value<T>();
return (T)o;
}
public object GetObject(string propertyName)
{