Click or drag to resize

ExpressionsInstanceOf Method (Expression, String, String)

Instance-of function, tests if the type of the return value of an expression is in a list of types.

The list of types can include fully-qualified class names plus any of the primitive type names: byte, char, short, int, long, float, double, boolean. Alternatively to "System.String" the simple "string" is also permitted.

Type checks include all superclasses and interfaces of the value returned by the expression.

Namespace:  com.espertech.esper.common.client.soda
Assembly:  NEsper.Common (in NEsper.Common.dll) Version: 8.0.0.0
Syntax
C#
public static InstanceOfExpression InstanceOf(
	Expression expression,
	string typeName,
	params string[] typeNames
)

Parameters

expression
Type: com.espertech.esper.common.client.sodaExpression
returns the value to test whether the type returned is any of the is the function name
typeName
Type: SystemString
is one type to check for
typeNames
Type: SystemString
is optional additional types to check for in a list

Return Value

Type: InstanceOfExpression
expression
See Also