[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Assembly: NEsper (in NEsper.dll)
Determines a common denominator type to which one or more types can be casted or coerced.
For use in determining the result type in certain expressions (coalesce, case).
Namespace: net.esper.util
Null values are allowed as part of the input and indicate a 'null' constant value in an expression tree. Such as value doesn't have any type and can be ignored in determining a result type.
For numeric types, determines a coercion type that all types can be converted to via the method GetArithmaticCoercionType.
Indicates that there is no common denominator type by throwing net.esper.util.CoercionException.
Assembly: NEsper (in NEsper.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Shared Function GetCommonCoercionType ( _ types As Type() _ ) As Type |
C# |
---|
public static Type GetCommonCoercionType ( Type[] types ) |
Visual C++ |
---|
public: static Type^ GetCommonCoercionType ( array<Type^>^ types ) |
Parameters
- types
- System.Type[]
is an array of one or more types, which can be Java built-in (primitive or wrapper) or user types