IModel.AsIn(IEnumerable<string>,bool) method
Namespace: NextDesign.Core
Description
Checks whether this instance is compatible with the class type specified by multiple string types.
Returns True if this instance is an instance of one of the specified classes or their subclasses.
argument
Name | Type | Description |
---|---|---|
classNames | IEnumerable<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. |
fuzzy | bool | Whether 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