3 // Copyright (c) Microsoft Corporation. All rights reserved.
6 ////////////////////////////////////////////////////////////////////////////////
7 ////////////////////////////////////////////////////////////////////////////////
9 namespace System.Runtime.CompilerServices
14 /// IMPORTANT: Keep this in sync with corhdr.h
17 [System.Runtime.InteropServices.ComVisible(true)]
18 public enum CompilationRelaxations : int
20 NoStringInterning = 0x0008, // Start in 0x0008, we had other non public flags in this enum before,
21 // so we'll start here just in case somebody used them. This flag is only
22 // valid when set for Assemblies.
26 [AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Module | AttributeTargets.Class | AttributeTargets.Method)]
27 [System.Runtime.InteropServices.ComVisible(true)]
28 public class CompilationRelaxationsAttribute : Attribute
30 private int m_relaxations; // The relaxations.
32 public CompilationRelaxationsAttribute (
35 m_relaxations = relaxations;
38 public CompilationRelaxationsAttribute (
39 CompilationRelaxations relaxations)
41 m_relaxations = (int) relaxations;
44 public int CompilationRelaxations