Search Results for

    Show / Hide Table of Contents

    Class NoNewInstancesAttribute

    Checks that no new instances of the specified types exists after the target method has been executed.

    Inheritance
    System.Object
    System.Attribute
    AssertionAttribute
    NoNewInstancesAttribute
    Inherited Members
    AssertionAttribute.Type
    AssertionAttribute.GetTypes()
    AssertionAttribute.TypeName
    AssertionAttribute.GetTypeNames()
    AssertionAttribute.IncludeSubclasses
    System.Attribute.Equals(System.Object)
    System.Attribute.GetHashCode()
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: SciTech.NetMemProfiler
    Assembly: SciTech.MemProfilerApi.dll
    Syntax
    [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
    public sealed class NoNewInstancesAttribute : AssertionAttribute
    Remarks

    This attribute can be applied to methods to define that no new instances of the specified types should exist after the method has been executed. For more information see AssertionsDefinition.NoNewInstances(Type[], Boolean) and AssertionAttribute.

    Constructors

    Name Description
    NoNewInstancesAttribute()

    Initializes a new instance of NoNewInstancesAttribute.

    NoNewInstancesAttribute(String)

    Initializes a new instance of NoNewInstancesAttribute with the type name of the instances that should be checked when the target method has been executed.

    NoNewInstancesAttribute(String[])

    Initializes a new instance of NoNewInstancesAttribute with the type of the instances that should be checked when the target method has been executed.

    NoNewInstancesAttribute(Type)

    Initializes a new instance of NoNewInstancesAttribute with the type of the instances that should be checked when the target method has been executed.

    NoNewInstancesAttribute(Type[])

    Initializes a new instance of NoNewInstancesAttribute with the types of the instances that should be checked when the target method has been executed.

    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