Click or drag to resize

ExpressionsInstanceOf Method (String, String, String)

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

Useful with dynamic (unchecked) properties to check the type of property returned.

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(
	string propertyName,
	string typeName,
	params string[] typeNames
)

Parameters

propertyName
Type: SystemString
name of the property supplying the value to test
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