|
UnitTestCreateGenericType Method |
The documentation is integral part of the weroSoft product documentation. This part is intended to be used by developers only.
Creates a generic type based on the particular base elements.
Namespace:
WeroSoft.UnitTesting
Assembly:
WeroSoft.UnitTesting.Library (in WeroSoft.UnitTesting.Library.dll) Version: 3.0 Pre-Release
Syntax public static Type CreateGenericType(
Type genericType,
Type[] innerTypes,
bool suppressException = true
)
Parameters
- genericType
- Type: SystemType
The generic base type. - innerTypes
- Type: SystemType
The types used as generic parameters. - suppressException (Optional)
- Type: SystemBoolean
Flag indicating whether exceptions shall be suppressed or not. If this flag is set to true and
an exception occurs, the method returns null.
Return Value
Type:
Type
The created type or null if the type could not be created (see also parameter
suppressException).
See Also