From a9a544c433273d9681ba243a7911e4b57bebe3dc Mon Sep 17 00:00:00 2001 From: Chris Cameron Date: Thu, 24 Jan 2019 15:58:46 -0500 Subject: [PATCH] feat: Simplifying generic JSON converters --- ICD.Common.Utils/Json/AbstractGenericJsonConverter.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ICD.Common.Utils/Json/AbstractGenericJsonConverter.cs b/ICD.Common.Utils/Json/AbstractGenericJsonConverter.cs index 0b95a0c..a6ea772 100644 --- a/ICD.Common.Utils/Json/AbstractGenericJsonConverter.cs +++ b/ICD.Common.Utils/Json/AbstractGenericJsonConverter.cs @@ -10,7 +10,10 @@ namespace ICD.Common.Utils.Json /// Creates a new instance of T. /// /// - protected abstract T Instantiate(); + protected virtual T Instantiate() + { + return ReflectionUtils.CreateInstance(); + } /// /// Writes the JSON representation of the object.