ProcedureSupport class | QSYS API Reference Guide
Provides static methods to support finding a class used in dynamic calls (RPG’s CallD).
Namespace: ASNA.QSys.Runtime Assembly: ASNA.QSys.Runtime.dll
Inheritance: Object
Properties
| Type | Name | Description | — | — | —
Methods
Signature | Description |
---|---|
DefaultLoader(String) | Loads the assembly. |
FindEntryMethod(Type) | Finds *Entry procedure method. |
FindType(String, Assembly) | Finds a Type by name in an assembly. |
Assembly DefaultLoader(string assemblyName)
Loads the assembly.
Assembly DefaultLoader(string assemblyName)
Parameters
Type | Parameter name | Description |
---|---|---|
String | assemblyName | Input assembly name. |
Returns
Type | Description |
---|---|
Assembly | The loaded assembly instance or null if fails to find it. |
MethodInfo FindEntryMethod(Type classType)
Finds *Entry procedure method.
MethodInfo FindEntryMethod(Type classType)
Parameters
Type | Parameter name | Description |
---|---|---|
Type | classType | Input type. |
Returns
Type | Description |
---|---|
MethodInfo | The method information if found; otherwise null. |
Type FindType(string typeName, Assembly assembly)
Finds a Type by name in an assembly.
Type FindType(string typeName, Assembly assembly)
Parameters
Type | Parameter name | Description |
---|---|---|
String | typeName | The type name. |
Assembly | assembly | The Assembly instance. |
Returns
Type | Description |
---|---|
Type | The type if successful. If given assembly is no valid it throws an exception. |