Search Results for

    Show / Hide Table of Contents

    Method Add

    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.

    Declaration
    public TypeSet Add(Type[] types, bool includeSubClasses)
    Parameters
    Type Name Description
    System.Type[] types

    The System.Types to include in the new TypeSet.

    System.Boolean includeSubClasses

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

    Returns
    Type Description
    TypeSet

    A new TypeSet that contains the supplied types, in addition to the types in this TypeSet.

    Add(Type[])

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

    Declaration
    public TypeSet Add(Type[] types)
    Parameters
    Type Name Description
    System.Type[] types

    The System.Types to include in the new TypeSet.

    Returns
    Type Description
    TypeSet

    A new TypeSet that contains the supplied types, in addition 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.

    Declaration
    public TypeSet Add(Type type, bool includeSubClasses)
    Parameters
    Type Name Description
    System.Type type

    The System.Type to include in the new TypeSet.

    System.Boolean includeSubClasses

    Indicates whether subclasses of the specified type should also be included.

    Returns
    Type Description
    TypeSet

    A new TypeSet that contains the supplied type, in addition to the types in this TypeSet.

    Add(Type)

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

    Declaration
    public TypeSet Add(Type type)
    Parameters
    Type Name Description
    System.Type type

    The System.Type to include in the new TypeSet.

    Returns
    Type Description
    TypeSet

    A new TypeSet that contains the supplied type, in addition to the 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.

    Declaration
    public TypeSet Add(string[] typeNames, bool includeSubClasses)
    Parameters
    Type Name Description
    System.String[] typeNames

    An array containing the names of the Types that should be added to the new TypeSet.

    System.Boolean includeSubClasses

    Indicates whether subclasses of the matched types should also be added.

    Returns
    Type Description
    TypeSet

    A new TypeSet that contains the matched types, in addition to the types in this TypeSet.

    Add(String[])

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

    Declaration
    public TypeSet Add(string[] typeNames)
    Parameters
    Type Name Description
    System.String[] typeNames

    An array containing the names of the Types that should be added to the new TypeSet.

    Returns
    Type Description
    TypeSet

    A new TypeSet that contains the matched types, in addition to the 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.

    Declaration
    public TypeSet Add(string typeName, bool includeSubClasses)
    Parameters
    Type Name Description
    System.String typeName

    The names of the Types that should be added to the new TypeSet.

    System.Boolean includeSubClasses

    Indicates whether subclasses of the matched types should also be added.

    Returns
    Type Description
    TypeSet

    A new TypeSet that contains the matched types, in addition to the types in this TypeSet.

    Add(String)

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

    Declaration
    public TypeSet Add(string typeName)
    Parameters
    Type Name Description
    System.String typeName

    The names of the Types that should be added to the new TypeSet.

    Returns
    Type Description
    TypeSet

    A new TypeSet that contains the matched types, in addition to the types in this TypeSet.

    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