|
UnitTestCreateInstanceT Method (Assembly, String, Object) |
The documentation is integral part of the weroSoft product documentation. This part is intended to be used by developers only.
Creates an instance using a particular assembly.
Namespace:
WeroSoft.UnitTesting
Assembly:
WeroSoft.UnitTesting.Library (in WeroSoft.UnitTesting.Library.dll) Version: 3.0 Pre-Release
Syntax public static T CreateInstance<T>(
Assembly assembly,
string typeFullName,
Object[] constructorParameters = null
)
Parameters
- assembly
- Type: System.ReflectionAssembly
Assembly from which the type shall be created. - typeFullName
- Type: SystemString
Full name of the type (name space based name). - constructorParameters (Optional)
- Type: SystemObject
Parameter types to be used for the construction.
Type Parameters
- T
- Type the instance shall be casted to.
Return Value
Type:
TThe created object or null if the object could not be created.
See Also