mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-01-11 19:44:55 +00:00
ISettings exposes Type of originator
This commit is contained in:
@@ -189,6 +189,18 @@ namespace ICD.Common.Utils
|
||||
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>
|
||||
/// Gets the custom attributes added to the given assembly.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user