Search Results for

    Show / Hide Table of Contents

    Class TypeSet

    The TypeSet class is used to define an immutable set of System.Types that can be used when building an AssertionsDefinition.

    Inheritance
    System.Object
    TypeSet
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    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 typeName and all types in this TypeSet.

    Add(String, Boolean)

    Creates a new TypeSet that includes all types that match the supplied typeName and all types in this TypeSet. If includeSubClasses is true, all subclasses of the matched types will also be added.

    Add(String[])

    Creates a new TypeSet that includes all types that match the supplied typeNames and all types in this TypeSet.

    Add(String[], Boolean)

    Creates a new TypeSet that includes all types that match the supplied typeNames and all types in this TypeSet. If includeSubClasses is true, all subclasses of the matched types will also be added.

    Add(Type)

    Creates a new TypeSet with the supplied type added to the types in this TypeSet.

    Add(Type, Boolean)

    Creates a new TypeSet with the supplied type added to the types in this TypeSet. If includeSubClasses is true, all subclasses of the matched types will also be added.

    Add(Type[])

    Creates a new TypeSet with the supplied types added to the types in this TypeSet.

    Add(Type[], Boolean)

    Creates a new TypeSet with the supplied types added to the types in this TypeSet. If includeSubClasses is true, all subclasses of the matched types will also be added.

    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 includeSubClasses is true, all subclasses of the matched types will also be added.

    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 includeSubClasses is true, all subclasses of the matched types will also be added.

    Subtract(String)

    Creates a new TypeSet with all types that match the supplied typeName removed from the types in this TypeSet.

    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.

    Subtract(String[])

    Creates a new TypeSet with all types that match the supplied typeNames removed from the types in this TypeSet.

    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.

    Subtract(Type)

    Creates a new TypeSet with the supplied type removed from the types in this TypeSet.

    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.

    Subtract(Type[])

    Creates a new TypeSet with the supplied types removed from the types in this TypeSet.

    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.

    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 includeSubClasses is true, all subclasses of the matched types will also be removed.

    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 includeSubClasses is true, all subclasses of the matched types will also be removed.

    In This Article
    Back to top

    © Copyright 2002-2020. SciTech Software AB.
    For information about .NET Memory Profiler, see the product site at https://memprofiler.com