Class TypeSet
The TypeSet class is used to define an immutable set of System.Types that can be used when building an AssertionsDefinition.
Inheritance
Inherited Members
Namespace: SciTech.NetMemProfiler
Assembly: SciTech.MemProfilerApi.dll
Syntax
public class TypeSet
Fields
| Name | Description |
|---|---|
| All | A TypeSet that contains all managed System.Types in the current process. |
| Empty | A TypeSet that does not contain any type. |
Properties
| Name | Description |
|---|---|
| Description | Gets a string identifying the types that are part of this TypeSet. |
| IsSingleType | Gets a value indicating whether this TypeSet contains a single System.Type. |
Methods
| Name | Description |
|---|---|
| Add(String) | Creates a new TypeSet that includes all types that match the
supplied |
| Add(String, Boolean) | Creates a new TypeSet that includes all types that match the
supplied |
| Add(String[]) | Creates a new TypeSet that includes all types that match the
supplied |
| Add(String[], Boolean) | Creates a new TypeSet that includes all types that match the
supplied |
| Add(Type) | Creates a new TypeSet with the supplied |
| Add(Type, Boolean) | Creates a new TypeSet with the supplied |
| Add(Type[]) | Creates a new TypeSet with the supplied |
| Add(Type[], Boolean) | Creates a new TypeSet with the supplied |
| AddNamespace(String) | Creates a new TypeSet that includes all types in the specified namespace and all types in this TypeSet. |
| AddNamespace(String, Boolean) | Creates a new TypeSet that includes all types in the specified namespace
and all types in this TypeSet.
If |
| AddNamespaces(ICollection<String>) | Creates a new TypeSet that includes all types in the specified namespaces and all types in this TypeSet. |
| AddNamespaces(ICollection<String>, Boolean) | Creates a new TypeSet that includes all types in the specified namespaces
and all types in this TypeSet.
If |
| Subtract(String) | Creates a new TypeSet with all types that match the
supplied |
| Subtract(String, Boolean) | Creates a new TypeSet with all types that match the
supplied |
| Subtract(String[]) | Creates a new TypeSet with all types that match the
supplied |
| Subtract(String[], Boolean) | Creates a new TypeSet with all types that match the
supplied |
| Subtract(Type) | Creates a new TypeSet with the supplied |
| Subtract(Type, Boolean) | Creates a new TypeSet with the supplied |
| Subtract(Type[]) | Creates a new TypeSet with the supplied |
| Subtract(Type[], Boolean) | Creates a new TypeSet with the supplied |
| SubtractNamespace(String) | Creates a new TypeSet with all types in the specified namespaces removed from the types in this TypeSet. |
| SubtractNamespace(String, Boolean) | Creates a new TypeSet with all types in the specified namespaces
removed from the types in this TypeSet.
If |
| SubtractNamespaces(ICollection<String>) | Creates a new TypeSet with all types in the specified namespaces removed from the types in this TypeSet. |
| SubtractNamespaces(ICollection<String>, Boolean) | Creates a new TypeSet with all types in the specified namespaces
removed from the types in this TypeSet.
If |