mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-12 03:57:32 +00:00
ISettings exposes Type of originator
This commit is contained in:
parent
8eb70b25f8
commit
8cae5910df
1 changed files with 12 additions and 0 deletions
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue