// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace System.Diagnostics.CodeAnalysis
{
    [AttributeUsage(AttributeTargets.All, Inherited = false, AllowMultiple = false)]
    internal sealed class ExcludeFromCodeCoverageAttribute : Attribute
    {
    }
}

// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace System.Diagnostics.CodeAnalysis
{
    [Conditional("DEBUG")] // don't bloat release assemblies
    [AttributeUsage(AttributeTargets.All, Inherited = false, AllowMultiple = false)]
    internal sealed class ExcludeFromCodeCoverageAttribute : Attribute
    {
    }
}

Make ExcludeFromCodeCoverage conditional on DEBUG
Make ExcludeFromCodeCoverage conditional on DEBUG

Some of our assemblies use ExcludeFromCodeCoverage to exclude from code
coverage various members.  Since we only do code coverage runs against
debug builds, there's no need to bloat such assemblies with
ExcludeFromCodeCoverage on these members in release builds.
