ISettings exposes Type of originator

This commit is contained in:
Chris Cameron
2017-06-27 15:06:32 -04:00
parent 8eb70b25f8
commit 8cae5910df

View File

@@ -189,6 +189,18 @@ namespace ICD.Common.Utils
return Activator.CreateInstance<T>(); return Activator.CreateInstance<T>();
} }
/// <summary>
/// Creates an instance of the given type, calling the default constructor.
/// </summary>
/// <returns></returns>
public static object CreateInstance(Type type)
{
if (type == null)
throw new ArgumentNullException("type");
return Activator.CreateInstance(type);
}
/// <summary> /// <summary>
/// Gets the custom attributes added to the given assembly. /// Gets the custom attributes added to the given assembly.
/// </summary> /// </summary>