Skip to content

Commit 9230190

Browse files
committed
Add System.Runtime.Versioning attributes
1 parent 6f06c27 commit 9230190

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// <copyright file="System.Runtime.Versioning.Attributes.cs" company="Datadog">
2+
// Unless explicitly stated otherwise all files in this repository are licensed under the Apache 2 License.
3+
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2017 Datadog, Inc.
4+
// </copyright>
5+
6+
// Licensed to the .NET Foundation under one or more agreements.
7+
// The .NET Foundation licenses this file to you under the MIT license.
8+
// https://github.com/dotnet/runtime/blob/bffa7cf52b3982597adc5447c25e7aaa3b063c1c/src/libraries/System.Private.CoreLib/src/System/Diagnostics/CodeAnalysis/NullableAttributes.cs
9+
10+
// This file contains attributes from the System.Runtime.Versioning namespace
11+
// used by the compiler for compiler-y stuff.
12+
13+
#nullable enable
14+
15+
#pragma warning disable SA1649 // file name should match first type name
16+
#pragma warning disable SA1402 // file may only contain a single type
17+
18+
// ReSharper disable once CheckNamespace
19+
namespace System.Runtime.Versioning;
20+
21+
// This attribute is used by some vendored Microsoft code
22+
// https://github.com/dotnet/runtime/blob/main/docs/design/coreclr/botr/readytorun-overview.md#performance-impact-1
23+
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Constructor | AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
24+
internal sealed class NonVersionableAttribute : Attribute
25+
{
26+
}

0 commit comments

Comments
 (0)