Skip to main content

IModel.IsIn(string,bool) Method

Namespace: NextDesign.Core

Description

Checks if this instance is an instance of one of the specified classes.
Returns True if it is an instance of one of the specified classes.

See the IModel documentation for how to specify class names and fuzzy matching options.

Argument

NameTypeDescription
classNamesstringClass names (comma-separated for multiple classes)
If null or an empty string is specified, this method evaluates to False.
If no class with the specified name is found, this method evaluates to False.
fuzzyboolFuzzy Matching Options
Whether to treat the classNames argument as the class name rather than the fully qualified name.
If False, it evaluates as specifying a class whose fully qualified name matches classNames.
If True, it evaluates as specifying a class whose class name matches classNames.
If multiple matches, this method evaluates to True if any one of them is an instance.

The default value is True.

Return value

  • bool