Search Results for

    Show / Hide Table of Contents

    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 types should be removed also.

    Returns
    Type Description
    TypeSet

    A new TypeSet that contains the types in this TypeSet, but with the specified types removed

    Subtract(Type[])

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

    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 type should be removed also.

    Returns
    Type Description
    TypeSet

    A new TypeSet that contains the types in this TypeSet, but with the specified types removed

    Subtract(Type)

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

    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 Types that should be removed from the new TypeSet.

    System.Boolean includeSubClasses

    Indicates whether subclasses of the specified types should be removed also.

    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 Types that should be removed from 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 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 Types that should be removed from the new TypeSet.

    System.Boolean includeSubClasses

    Indicates whether subclasses of the specified types should be removed also.

    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 Types that should be removed from the new TypeSet.

    Returns
    Type Description
    TypeSet

    A new TypeSet that contains the types in this TypeSet, but with the specified types 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