TypeRegistryGetContextTypeTResult, TInstanceParameter(ISupportContextVariables) Method

Gets a compiled context type based on registered types and symbols.

Definition

Namespace: Gemstone.Expressions.Evaluator
Assembly: Gemstone.Expressions (in Gemstone.Expressions.dll) Version: 1.0.171 -- Release Build+912a0499557b7e3dab1c210a7947afeece80dcde
public Type GetContextType<TResult, TInstanceParameter>(
	ISupportContextVariables? variableContext = null
)

Parameters

variableContext  ISupportContextVariables  (Optional)
Optional ISupportContextVariables instance to use for context variables.

Type Parameters

TResult
Return value Type used for generated context type functions.
TInstanceParameter
Instance parameter Type for generated context type functions.

Return Value

Type
Compiled context type based on registered types and symbols.

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