Skip to main content

IModel.IsIn(IEnumerable<string>,bool) method

Namespace: NextDesign.Core

Description

Determines whether this instance is an instance of one of the specified classes.
Returns True if it is an instance of any of the specified classes.

argument

NameTypeDescription
classNamesIEnumerable<string>Enumeration of class names
If a null or empty enumeration is specified, this method evaluates to False.
If a class with the specified name is not found, this method evaluates to False.
fuzzyboolWhether to treat the classNames argument as the name of a class rather than a fully qualified name.
If False, evaluate as specifying a class whose fully qualified name matches classNames.
If True, evaluate the class whose class name matches classNames.
If there are multiple instances, this method will be evaluated as True if it is an instance of one of them.

Default value is True.

Return value

  • bool