IModel.AsIn(IEnumerable<string>,bool) Method
Namespace: NextDesign.Core
Description
Checks if this instance is compatible with any of the specified class types.
Returns True if this instance is an instance of any of the specified classes or their subclasses.
See the IModel description for how to specify class names and fuzzy matching options.
Arguments
Name | Type | Description |
---|---|---|
classNames | IEnumerable<string> | Enumeration of class names If null or an empty enumeration is specified, this method evaluates to False. If no class with the specified name is found, this method evaluates to False. |
fuzzy | bool | Fuzzy 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