ValueExpressionParserTInitializeType Method
Validates that any static type T functionality is initialized.
Namespace: Gemstone.Expressions.ModelAssembly: Gemstone.Expressions (in Gemstone.Expressions.dll) Version: 1.0.166 -- Release Build+b9d6a8ace5a2e92842f42ad9e3bd94e5b5e57d9d
public static bool InitializeType()
Public Shared Function InitializeType As Boolean
public:
static bool InitializeType()
Gemstone.Expressions.Model.ValueExpressionParser.InitializeType = function();
Return Value
Booleantrue if type
T supports a parameterless constructor and was
successfully initialized; otherwise,
false.
As long as type T defines a parameterless constructor, this method
will create an instance of the modeled class so that any defined static functionality will
be initialized. Calling this method in advance of the static create or update delegate
generation functions will allow modeled types to self-register any custom symbols and types
that may be used during evaluation of value expressions attributes, e.g.:
static MyModel()
{
TableOperations<MyModel>.TypeRegistry.RegisterType<MyType>();
}