From aae8bc532333d1c050217a827ec12af2a4e0852c Mon Sep 17 00:00:00 2001 From: Laura Gomez Date: Mon, 16 Sep 2019 15:15:35 -0400 Subject: [PATCH] feat: Adding default implementation for AbstractGenericXmlConverter Instantiate method --- ICD.Common.Utils/Xml/AbstractGenericXmlConverter.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ICD.Common.Utils/Xml/AbstractGenericXmlConverter.cs b/ICD.Common.Utils/Xml/AbstractGenericXmlConverter.cs index 1673858..287ba0f 100644 --- a/ICD.Common.Utils/Xml/AbstractGenericXmlConverter.cs +++ b/ICD.Common.Utils/Xml/AbstractGenericXmlConverter.cs @@ -14,7 +14,10 @@ namespace ICD.Common.Utils.Xml /// Creates a new instance of T. /// /// - protected abstract T Instantiate(); + protected virtual T Instantiate() + { + return ReflectionUtils.CreateInstance(); + } /// /// Writes the XML representation of the object.