Skip to main content

IModel.IsIn(string,bool) Method

Namespace: NextDesign.Core

Description

Checks whether 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 description for how to specify class names and fuzzy match options.

Arguments

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

The default value is True.

Return value

  • bool