Skip to main content

IModel.IsIn(IPackage,IEnumerable<string>,bool) Method

Namespace: NextDesign.Core

Description

Checks whether this instance is an instance of one of the specified classes.
The specified class is identified from the package specified by the scope.
Returns True if the instance is one of the specified classes.

See the IModel description for how to specify the class name and the fuzzy match option.

Arguments

NameTypeDescription
scopeIPackageScope (Package that is the base point of the search range)
classNamesIEnumerable<string>Enumeration of class names
If null or an empty enumeration is specified, this method evaluates to False.
If a class with the specified name is not found, this method evaluates to False.
fuzzyboolFuzzy match option
Whether to treat the classNames argument as the name of a class instead of a fully qualified name.
If False, it is evaluated as specifying a class whose fully qualified name matches classNames.
If True, it is evaluated as specifying a class whose class name matches classNames.
If multiple matches are true, this method evaluates to True if the instance is any one of them.

The default value is True.

Return value

  • bool