Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / clr / src / BCL / System / Runtime / CompilerServices / MethodImplAttribute.cs / 1 / MethodImplAttribute.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== namespace System.Runtime.CompilerServices { using System; using System.Reflection; // This Enum matchs the miImpl flags defined in corhdr.h. It is used to specify // certain method properties. [Serializable] [Flags] [System.Runtime.InteropServices.ComVisible(true)] public enum MethodImplOptions { Unmanaged = System.Reflection.MethodImplAttributes.Unmanaged, ForwardRef = System.Reflection.MethodImplAttributes.ForwardRef, PreserveSig = System.Reflection.MethodImplAttributes.PreserveSig, InternalCall = System.Reflection.MethodImplAttributes.InternalCall, Synchronized = System.Reflection.MethodImplAttributes.Synchronized, NoInlining = System.Reflection.MethodImplAttributes.NoInlining, NoOptimization = System.Reflection.MethodImplAttributes.NoOptimization, // **** If you add something, update internal MethodImplAttribute(MethodImplAttributes methodImplAttributes)! **** } [Serializable] [System.Runtime.InteropServices.ComVisible(true)] public enum MethodCodeType { IL = System.Reflection.MethodImplAttributes.IL, Native = System.Reflection.MethodImplAttributes.Native, ///OPTIL = System.Reflection.MethodImplAttributes.OPTIL, Runtime = System.Reflection.MethodImplAttributes.Runtime } // Custom attribute to specify additional method properties. [Serializable, AttributeUsage(AttributeTargets.Method | AttributeTargets.Constructor, Inherited = false)] [System.Runtime.InteropServices.ComVisible(true)] sealed public class MethodImplAttribute : Attribute { internal MethodImplOptions _val; public MethodCodeType MethodCodeType; internal MethodImplAttribute(MethodImplAttributes methodImplAttributes) { MethodImplOptions all = MethodImplOptions.Unmanaged | MethodImplOptions.ForwardRef | MethodImplOptions.PreserveSig | MethodImplOptions.InternalCall | MethodImplOptions.Synchronized | MethodImplOptions.NoInlining | MethodImplOptions.NoOptimization; _val = ((MethodImplOptions)methodImplAttributes) & all; } public MethodImplAttribute(MethodImplOptions methodImplOptions) { _val = methodImplOptions; } public MethodImplAttribute(short value) { _val = (MethodImplOptions)value; } public MethodImplAttribute() { } public MethodImplOptions Value { get {return _val;} } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== namespace System.Runtime.CompilerServices { using System; using System.Reflection; // This Enum matchs the miImpl flags defined in corhdr.h. It is used to specify // certain method properties. [Serializable] [Flags] [System.Runtime.InteropServices.ComVisible(true)] public enum MethodImplOptions { Unmanaged = System.Reflection.MethodImplAttributes.Unmanaged, ForwardRef = System.Reflection.MethodImplAttributes.ForwardRef, PreserveSig = System.Reflection.MethodImplAttributes.PreserveSig, InternalCall = System.Reflection.MethodImplAttributes.InternalCall, Synchronized = System.Reflection.MethodImplAttributes.Synchronized, NoInlining = System.Reflection.MethodImplAttributes.NoInlining, NoOptimization = System.Reflection.MethodImplAttributes.NoOptimization, // **** If you add something, update internal MethodImplAttribute(MethodImplAttributes methodImplAttributes)! **** } [Serializable] [System.Runtime.InteropServices.ComVisible(true)] public enum MethodCodeType { IL = System.Reflection.MethodImplAttributes.IL, Native = System.Reflection.MethodImplAttributes.Native, /// OPTIL = System.Reflection.MethodImplAttributes.OPTIL, Runtime = System.Reflection.MethodImplAttributes.Runtime } // Custom attribute to specify additional method properties. [Serializable, AttributeUsage(AttributeTargets.Method | AttributeTargets.Constructor, Inherited = false)] [System.Runtime.InteropServices.ComVisible(true)] sealed public class MethodImplAttribute : Attribute { internal MethodImplOptions _val; public MethodCodeType MethodCodeType; internal MethodImplAttribute(MethodImplAttributes methodImplAttributes) { MethodImplOptions all = MethodImplOptions.Unmanaged | MethodImplOptions.ForwardRef | MethodImplOptions.PreserveSig | MethodImplOptions.InternalCall | MethodImplOptions.Synchronized | MethodImplOptions.NoInlining | MethodImplOptions.NoOptimization; _val = ((MethodImplOptions)methodImplAttributes) & all; } public MethodImplAttribute(MethodImplOptions methodImplOptions) { _val = methodImplOptions; } public MethodImplAttribute(short value) { _val = (MethodImplOptions)value; } public MethodImplAttribute() { } public MethodImplOptions Value { get {return _val;} } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- InfoCardMasterKey.cs
- TableLayoutColumnStyleCollection.cs
- AttributeCollection.cs
- QueryAsyncResult.cs
- SortExpressionBuilder.cs
- Dispatcher.cs
- BitmapVisualManager.cs
- ExpressionLexer.cs
- SendMailErrorEventArgs.cs
- ResourceExpression.cs
- InlinedAggregationOperator.cs
- ObjectStorage.cs
- TextBoxView.cs
- SecurityCookieModeValidator.cs
- CellConstantDomain.cs
- DataTemplateSelector.cs
- InputScope.cs
- XmlSchemaSimpleTypeList.cs
- StrokeCollectionDefaultValueFactory.cs
- DataViewSetting.cs
- TextContainerChangeEventArgs.cs
- IfAction.cs
- TdsParserHelperClasses.cs
- DESCryptoServiceProvider.cs
- FontResourceCache.cs
- SoapInteropTypes.cs
- XmlReader.cs
- GeometryDrawing.cs
- ScriptResourceInfo.cs
- UrlAuthorizationModule.cs
- TableRow.cs
- HttpsTransportElement.cs
- IChannel.cs
- SafeNativeMethods.cs
- DbCommandDefinition.cs
- DataPagerFieldItem.cs
- EdmValidator.cs
- MonitoringDescriptionAttribute.cs
- basecomparevalidator.cs
- LinqDataSourceHelper.cs
- IndividualDeviceConfig.cs
- TimeSpanConverter.cs
- CompositeControlDesigner.cs
- XmlSchemaComplexType.cs
- NativeMethods.cs
- WindowsListView.cs
- MDIControlStrip.cs
- ExtenderControl.cs
- Internal.cs
- ConnectionOrientedTransportChannelListener.cs
- Vector3dCollection.cs
- DefaultProxySection.cs
- ConstraintCollection.cs
- LicenseException.cs
- ApplicationSecurityManager.cs
- WsrmTraceRecord.cs
- Int64AnimationUsingKeyFrames.cs
- ReadOnlyActivityGlyph.cs
- WebPartsPersonalization.cs
- AvTrace.cs
- SessionPageStateSection.cs
- ChangePassword.cs
- VariantWrapper.cs
- ToolBar.cs
- ImageSourceValueSerializer.cs
- PublisherIdentityPermission.cs
- ScriptResourceHandler.cs
- ThrowHelper.cs
- Int32EqualityComparer.cs
- TimerEventSubscriptionCollection.cs
- LeafCellTreeNode.cs
- Point3DAnimationBase.cs
- DataListItemCollection.cs
- StylusEventArgs.cs
- IODescriptionAttribute.cs
- processwaithandle.cs
- ScrollChrome.cs
- DispatcherObject.cs
- WriteStateInfoBase.cs
- WebPartConnectionsConnectVerb.cs
- CompilerScopeManager.cs
- ToolboxControl.cs
- DesignerSerializationOptionsAttribute.cs
- errorpatternmatcher.cs
- ISAPIApplicationHost.cs
- HttpWebResponse.cs
- ToolStripPanelRow.cs
- MapPathBasedVirtualPathProvider.cs
- WebPartDisplayModeCollection.cs
- UIPropertyMetadata.cs
- DataConnectionHelper.cs
- CertificateManager.cs
- XmlSchemaComplexContentRestriction.cs
- InvokePattern.cs
- ParserExtension.cs
- unitconverter.cs
- SweepDirectionValidation.cs
- TextServicesCompartment.cs
- UnaryNode.cs
- LoginView.cs