1 // Licensed to the .NET Foundation under one or more agreements. 2 // The .NET Foundation licenses this file to you under the MIT license. 3 // See the LICENSE file in the project root for more information. 4 5 namespace System.Runtime.CompilerServices 6 { 7 [AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Module | AttributeTargets.Class | AttributeTargets.Method)] 8 public class CompilationRelaxationsAttribute : Attribute 9 { CompilationRelaxationsAttribute(int relaxations)10 public CompilationRelaxationsAttribute(int relaxations) 11 { 12 CompilationRelaxations = relaxations; 13 } 14 CompilationRelaxationsAttribute(CompilationRelaxations relaxations)15 public CompilationRelaxationsAttribute(CompilationRelaxations relaxations) 16 { 17 CompilationRelaxations = (int)relaxations; 18 } 19 20 public int CompilationRelaxations { get; } 21 } 22 } 23