mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-16 05:05:05 +00:00
feat: Simplifying generic JSON converters
This commit is contained in:
@@ -10,7 +10,10 @@ namespace ICD.Common.Utils.Json
|
|||||||
/// Creates a new instance of T.
|
/// Creates a new instance of T.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
protected abstract T Instantiate();
|
protected virtual T Instantiate()
|
||||||
|
{
|
||||||
|
return ReflectionUtils.CreateInstance<T>();
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Writes the JSON representation of the object.
|
/// Writes the JSON representation of the object.
|
||||||
|
|||||||
Reference in New Issue
Block a user