Class TypeResolutionHelper
Helper class for type resolution.
Inheritance
System.Object
TypeResolutionHelper
Namespace: Microsoft.Psi
Assembly: Microsoft.Psi.dll
Syntax
public static class TypeResolutionHelper : object
Methods
View SourceGetVerifiedType(String, IReadOnlyDictionary<String, String>)
Gets a type by its type name. This method will only return types from loaded assemblies, i.e. assemblies explicitly referenced or loaded by this application.
Declaration
public static Type GetVerifiedType(string typeName, IReadOnlyDictionary<string, string> typeMapping = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
typeName | The name of the type to retrieve. |
IRead |
typeMapping | An optional type mapping to use when retrieving the type by name, in case the type is not found and names or assemblies have changed. |
Returns
Type | Description |
---|---|
Type | The requested type, or null if the type was not found. |