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.CoreAssembly: 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
|
Return Value
Type:
TypeType inferred from the type name.
See Also