TypeRegistryRegisterStaticType(Type) Method
Registers a new static
Type, i.e., for access in expressions with
static using.
Namespace: Gemstone.Expressions.EvaluatorAssembly: Gemstone.Expressions (in Gemstone.Expressions.dll) Version: 1.0.176 -- Release Build+040f3607386fb7604df913857f1b8e33ff50cb2f
public bool RegisterStaticType(
Type type
)
Public Function RegisterStaticType (
type As Type
) As Boolean
public:
bool RegisterStaticType(
Type^ type
)
function RegisterStaticType(type);
- type Type
- Type to register as a static type.
Booleantrue if the
type was registered successfully; otherwise,
false if the
type was already registered.
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).