Method Subtract
Subtract(Type[], Boolean)
Creates a new TypeSet with the supplied types
removed from the types in this TypeSet.
If includeSubClasses is true, all
subclasses of the specified types will also be removed.
Declaration
public TypeSet Subtract(Type[] types, bool includeSubClasses)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Type[] | types | The System.Types that should not be included in the new TypeSet. |
| System.Boolean | includeSubClasses | Indicates whether subclasses of the specified |
Returns
| Type | Description |
|---|---|
| TypeSet | A new TypeSet that contains the types in this TypeSet, but with the specified types removed |
Subtract(Type[])
Declaration
public TypeSet Subtract(Type[] types)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Type[] | types | The System.Types that should not be included in the new TypeSet. |
Returns
| Type | Description |
|---|---|
| TypeSet | A new TypeSet that contains the types in this TypeSet, but with the specified types removed |
Subtract(Type, Boolean)
Creates a new TypeSet with the supplied type
removed from the types in this TypeSet.
If includeSubClasses is true, all
subclasses of the specified type will also be removed.
Declaration
public TypeSet Subtract(Type type, bool includeSubClasses)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Type | type | The System.Type that should not be included in the new TypeSet. |
| System.Boolean | includeSubClasses | Indicates whether subclasses of the specified |
Returns
| Type | Description |
|---|---|
| TypeSet | A new TypeSet that contains the types in this TypeSet, but with the specified types removed |
Subtract(Type)
Declaration
public TypeSet Subtract(Type type)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Type | type | The System.Type that should not be included in the new TypeSet. |
Returns
| Type | Description |
|---|---|
| TypeSet | A new TypeSet that contains the types in this TypeSet, but with the specified types removed |
Subtract(String[], Boolean)
Creates a new TypeSet with all types that match the
supplied typeNames
removed from the types in this TypeSet.
If includeSubClasses is true, all
subclasses of the matching types will also be removed.
Declaration
public TypeSet Subtract(string[] typeNames, bool includeSubClasses)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String[] | typeNames | An array containing the names of the |
| System.Boolean | includeSubClasses | Indicates whether subclasses of the specified |
Returns
| Type | Description |
|---|---|
| TypeSet | A new TypeSet that contains the types in this TypeSet, but with the specified types removed |
Subtract(String[])
Creates a new TypeSet with all types that match the
supplied typeNames
removed from the types in this TypeSet.
Declaration
public TypeSet Subtract(string[] typeNames)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String[] | typeNames | An array containing the names of the |
Returns
| Type | Description |
|---|---|
| TypeSet | A new TypeSet that contains the types in this TypeSet, but with the specified types removed |
Subtract(String, Boolean)
Creates a new TypeSet with all types that match the
supplied typeName
removed from the types in this TypeSet.
If includeSubClasses is true, all
subclasses of the matching types will also be removed.
Declaration
public TypeSet Subtract(string typeName, bool includeSubClasses)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | typeName | The name of the |
| System.Boolean | includeSubClasses | Indicates whether subclasses of the specified |
Returns
| Type | Description |
|---|---|
| TypeSet | A new TypeSet that contains the types in this TypeSet, but with the specified types removed |
Subtract(String)
Creates a new TypeSet with all types that match the
supplied typeName
removed from the types in this TypeSet.
Declaration
public TypeSet Subtract(string typeName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | typeName | The name of the |
Returns
| Type | Description |
|---|---|
| TypeSet | A new TypeSet that contains the types in this TypeSet, but with the specified types removed. |