Click or drag to resize

ExpressionsInstanceOf Method

Overload List
  NameDescription
Public methodStatic memberInstanceOf(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.

Public methodStatic memberInstanceOf(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.

Top
See Also