Resolves a reflected type to its native Type object.

Namespace:  Gallio.Common.Reflection.Impl
Assembly:  Gallio (in Gallio.dll) Version: 3.3.0.0 (3.3.610.0)

Syntax

C#
public static Type ResolveType(
	IResolvableTypeInfo type,
	MethodInfo methodContext,
	bool throwOnError
)
Visual Basic (Declaration)
Public Shared Function ResolveType ( _
	type As IResolvableTypeInfo, _
	methodContext As MethodInfo, _
	throwOnError As Boolean _
) As Type

Parameters

type
Type: Gallio.Common.Reflection.Impl..::.IResolvableTypeInfo
The reflected type.
methodContext
Type: System.Reflection..::.MethodInfo
The method that is currently in scope, or null if none. This parameter is used when resolving types that are part of the signature of a generic method so that generic method arguments can be handled correctly.
throwOnError
Type: System..::.Boolean
If true, throws an exception if resolution fails, otherwise returns an unresolved Type.

Return Value

The resolved Type.

Exceptions

ExceptionCondition
System..::.ArgumentNullExceptionThrown if type is null.
Gallio.Common.Reflection..::.ReflectionResolveExceptionThrown if type could not be resolved.

See Also