Tungsten
IDomainLoaderCreateTInterfaceType Method (String) |
Instantiates a class and returns a handle to it. This handle must be cast to an interface in order to work across AppDomains.
Namespace: W.Domains
Assembly: Tungsten.Domains (in Tungsten.Domains.dll) Version: 2.0.0
Syntax
C#
TInterfaceType Create<TInterfaceType>( string typeName )
Parameters
- typeName
- Type: SystemString
The name of the type which is to be instantiated
Type Parameters
- TInterfaceType
- The handle to the class is automatically cast to the interfafce TInterfaceType
Return Value
Type: TInterfaceTypeA handle to the instantiated object. This value should be cast to an interface as only interfaces will work across AppDomains.
See Also