singrdk/base/Interfaces/Baseattrs/MethodImplAttribute.csi

46 lines
2.0 KiB
Plaintext
Raw Permalink Normal View History

2008-03-05 09:52:00 -05:00
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
using System;
2008-11-17 18:29:00 -05:00
namespace System.Runtime.CompilerServices
{
2008-03-05 09:52:00 -05:00
// This Enum matches the miImpl flags defined in corhdr.h. It is used to specify
// certain method properties.
//| <include file='doc\MethodImplAttribute.uex' path='docs/doc[@for="MethodImplOptions"]/*' />
[Flags]
public enum MethodImplOptions
{
//| <include file='doc\MethodImplAttribute.uex' path='docs/doc[@for="MethodImplOptions.Unmanaged"]/*' />
Unmanaged = 0x0004,
//| <include file='doc\MethodImplAttribute.uex' path='docs/doc[@for="MethodImplOptions.ForwardRef"]/*' />
ForwardRef = 0x0010,
//| <include file='doc\MethodImplAttribute.uex' path='docs/doc[@for="MethodImplOptions.InternalCall"]/*' />
InternalCall = 0x1000,
//| <include file='doc\MethodImplAttribute.uex' path='docs/doc[@for="MethodImplOptions.Synchronized"]/*' />
Synchronized = 0x0020,
//| <include file='doc\MethodImplAttribute.uex' path='docs/doc[@for="MethodImplOptions.NoInlining"]/*' />
NoInlining = 0x0008,
}
// Custom attribute to specify additional method properties.
//| <include file='doc\MethodImplAttribute.uex' path='docs/doc[@for="MethodImplAttribute"]/*' />
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Constructor, Inherited = false)]
sealed public class MethodImplAttribute : Attribute
{
//| <include file='doc\MethodImplAttribute.uex' path='docs/doc[@for="MethodImplAttribute.MethodImplAttribute"]/*' />
public MethodImplAttribute(MethodImplOptions methodImplOptions);
//| <include file='doc\MethodImplAttribute.uex' path='docs/doc[@for="MethodImplAttribute.MethodImplAttribute1"]/*' />
public MethodImplAttribute(short value);
//| <include file='doc\MethodImplAttribute.uex' path='docs/doc[@for="MethodImplAttribute.MethodImplAttribute2"]/*' />
public MethodImplAttribute();
}
}