feat: Simplifying generic JSON converters

This commit is contained in:
Chris Cameron
2019-01-24 15:58:46 -05:00
parent 2e0837f5c8
commit a9a544c433

View File

@@ -10,7 +10,10 @@ namespace ICD.Common.Utils.Json
/// Creates a new instance of T.
/// </summary>
/// <returns></returns>
protected abstract T Instantiate();
protected virtual T Instantiate()
{
return ReflectionUtils.CreateInstance<T>();
}
/// <summary>
/// Writes the JSON representation of the object.