Open sandboxFocus

Method GetTypeByReflectionName

GetTypeByReflectionName(string)

Get type based on its full name, as used in reflection.

Declaration
INamedType GetTypeByReflectionName(string reflectionName)
Parameters
Type Name Description
string reflectionName
Returns
Type Description
INamedType
Remarks

For nested types, this means using +, e.g. to get Environment.SpecialFolder, use System.Environment+SpecialFolder.

For generic type definitions, this requires using </code>, e.g. to get <code>List<T></code>, use <code>System.Collections.Generic.List1.

Constructed generic types (e.g. List<int>) are not supported, for those, use WithTypeArguments(IMethod, params IType[]).