Looks up a type name and tries to retrieve the full type reference in the actively executing assemblies. Allows you to avoid using fully qualified AssemblyQualifiedName. If type cannot be inferred, returns the fallback type.

Namespace: MonoSoftware.Core
Assembly: MonoSoftware.Core (in MonoSoftware.Core.dll) Version: 1.0.40.669 (1.0.40.669)

Syntax

C#
public static Type GetTypeFromName(
	string typeName,
	Type fallbackType
)
Visual Basic
Public Shared Function GetTypeFromName ( 
	typeName As String,
	fallbackType As Type
) As Type
Visual C++
public:
static Type^ GetTypeFromName(
	String^ typeName, 
	Type^ fallbackType
)
F#
static member GetTypeFromName : 
        typeName : string * 
        fallbackType : Type -> Type 

Parameters

typeName
Type: System..::..String
Type name.
fallbackType
Type: System..::..Type
Fallback type.

Return Value

Type: Type
Type inferred from the type name.

See Also