 | GenericNonSingletonProviderGetInstanceT Method |
Returns an instance of the desired class.
Namespace: NetEti.GlobalsAssembly: NetEti.Global (in NetEti.Global.dll) Version: 1.0.0+ad672dc5430e1683eae7461ce3945c8e9dce1c49
Syntaxpublic static T GetInstance<T>()
where T : class
Public Shared Function GetInstance(Of T As Class) As T
public:
generic<type name T>
where T : ref class
static T GetInstance()
static member GetInstance : unit -> 'T when 'T : not struct
Type parameters
- T
- Type of class requested
Return value
TA new instance of the requested class.
See also