IModel.IsIn(IEnumerable <string>, bool) method
Namespace: NextDesign.Core
Description
Checks if this instance is an instance of any of the specified classes. Returns True for instances of any of the specified classes.
argument
Name | Type | Description |
---|---|---|
classNames | IEnumerable <string> | Class name enumeration If null or an empty enumeration is specified, this method evaluates to False. If the class with the specified name is not found, the evaluation of this method will be False. |
fuzzy | bool | classNames Whether to treat the argument as a class name rather than a fully qualified name. If False, evaluate as specifying a class whose fully qualified name matches classNames. If True, evaluate as specifying a class whose class name matches classNames. If there are multiple cases, and if it is an instance of any one of them, the evaluation of this method is True. The default value is True. |
Return value
- bool