// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace System.Runtime.CompilerServices { // Custom attribute to specify additional method properties. [AttributeUsage(AttributeTargets.Method | AttributeTargets.Constructor, Inherited = false)] public sealed class MethodImplAttribute : Attribute { public MethodCodeType MethodCodeType; public MethodImplAttribute(MethodImplOptions methodImplOptions) { Value = methodImplOptions; } public MethodImplAttribute(short value) { Value = (MethodImplOptions)value; } public MethodImplAttribute() { } public MethodImplOptions Value { get; } } } |