TypeRegistryRegisterStaticTypeT Method

Registers a new static Type, i.e., for access in expressions with static using.

Definition

Namespace: Gemstone.Expressions.Evaluator
Assembly: Gemstone.Expressions (in Gemstone.Expressions.dll) Version: 1.0.169 -- Release Build+7e19ae13fc8cb044bd1f384a021abae6dc5c1045
public bool RegisterStaticType<T>()

Type Parameters

T
Type to register as a static type.

Return Value

Boolean
true if the T was registered successfully; otherwise, false if the T was already registered.

Remarks

Registering a static type will allow the type to be used in expressions without prefixing the type with its name, i.e., referenceable in code via a static using. This is useful for types that are used frequently e.g., Math or Enumerable. Note that adding a static using for a type will automatically register the type via RegisterType(Type).

See Also