Skip to main content

IModel.AsIn(string, bool) method

Namespace: NextDesign.Core

Description

Checks if this instance is compatible with the class type specified by the comma separated string type. Returns True if this instance is an instance of any of the specified classes or their subclasses.

argument

NameTypeDescription
classNamesstringClass names (separated by commas if multiple classes are specified)
If null or an empty string 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.
fuzzyboolclassNames 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