mirror of
https://github.com/chylex/.NET-Community-Toolkit.git
synced 2024-11-24 07:42:45 +01:00
27 lines
828 B
C#
27 lines
828 B
C#
// Licensed to the .NET Foundation under one or more agreements.
|
|
// The .NET Foundation licenses this file to you under the MIT license.
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
#if !NET6_0_OR_GREATER
|
|
|
|
namespace System.Runtime.CompilerServices;
|
|
|
|
/// <summary>
|
|
/// Used to indicate to the compiler that the <c>.locals init</c> flag should not be set in method headers.
|
|
/// </summary>
|
|
/// <remarks>Internal copy of the .NET 5 attribute.</remarks>
|
|
[AttributeUsage(
|
|
AttributeTargets.Module |
|
|
AttributeTargets.Class |
|
|
AttributeTargets.Struct |
|
|
AttributeTargets.Interface |
|
|
AttributeTargets.Constructor |
|
|
AttributeTargets.Method |
|
|
AttributeTargets.Property |
|
|
AttributeTargets.Event,
|
|
Inherited = false)]
|
|
internal sealed class SkipLocalsInitAttribute : Attribute
|
|
{
|
|
}
|
|
|
|
#endif |