mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-12 12:07:05 +00:00
feat: Adding default implementation for AbstractGenericXmlConverter Instantiate method
This commit is contained in:
parent
11004085c5
commit
aae8bc5323
1 changed files with 4 additions and 1 deletions
|
|
@ -14,7 +14,10 @@ namespace ICD.Common.Utils.Xml
|
|||
/// Creates a new instance of T.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
protected abstract T Instantiate();
|
||||
protected virtual T Instantiate()
|
||||
{
|
||||
return ReflectionUtils.CreateInstance<T>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Writes the XML representation of the object.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue