TypeRegistryGetNewContext(Type, Type) Method
Gets a new context instance.
Namespace: Gemstone.Expressions.EvaluatorAssembly: Gemstone.Expressions (in Gemstone.Expressions.dll) Version: 1.0.110 -- Release Build+d9cbb49d009f536d325018112e5411c7c36b5400
public Object GetNewContext(
Type resultType,
Type instanceParameterType
)
Public Function GetNewContext (
resultType As Type,
instanceParameterType As Type
) As Object
public:
Object^ GetNewContext(
Type^ resultType,
Type^ instanceParameterType
)
function GetNewContext(resultType, instanceParameterType);
- resultType Type
- Return value used Type for generated context type functions.
- instanceParameterType Type
- Instance parameter Type for generated context type functions.
ObjectNew context instance.
This method may generate a new runtime type based on registered types and symbols
that is compiled into its own assembly and loaded into memory. The same cached type
will be returned unless the registered types or symbols change. Since prior compiled
assemblies cannot be unloaded, this property should only be called after all the
desired types and symbols have been registered.