TypeRegistryGetNewContext(Type, Type, ISupportContextVariables) Method

Gets a new context instance.

Definition

Namespace: Gemstone.Expressions.Evaluator
Assembly: Gemstone.Expressions (in Gemstone.Expressions.dll) Version: 1.0.166 -- Release Build+b9d6a8ace5a2e92842f42ad9e3bd94e5b5e57d9d
public Object GetNewContext(
	Type resultType,
	Type instanceParameterType,
	ISupportContextVariables? variableContext = null
)

Parameters

resultType  Type
Return value used Type for generated context type functions.
instanceParameterType  Type
Instance parameter Type for generated context type functions.
variableContext  ISupportContextVariables  (Optional)
Optional ISupportContextVariables instance to use for context variables.

Return Value

Object
New context instance.

Remarks

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.

See Also