Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / clr / src / BCL / System / Runtime / CompilerServices / MethodImplAttribute.cs / 2 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SafeRightsManagementHandle.cs
- CustomCategoryAttribute.cs
- SizeAnimationClockResource.cs
- EntityReference.cs
- Exception.cs
- XmlSchemaAll.cs
- Serializer.cs
- GlyphElement.cs
- ContentTextAutomationPeer.cs
- VersionUtil.cs
- mediaeventshelper.cs
- MatrixValueSerializer.cs
- DbConnectionInternal.cs
- WinFormsUtils.cs
- SchemaImporterExtensionElement.cs
- ValueQuery.cs
- PowerModeChangedEventArgs.cs
- TextRangeProviderWrapper.cs
- WebConfigurationHost.cs
- SoapFormatterSinks.cs
- Metafile.cs
- BamlTreeNode.cs
- OutOfMemoryException.cs
- EntityDataSourceQueryBuilder.cs
- ConfigXmlAttribute.cs
- StylusTip.cs
- IxmlLineInfo.cs
- Documentation.cs
- ValidationPropertyAttribute.cs
- _PooledStream.cs
- CollectionContainer.cs
- EventToken.cs
- BaseTemplateBuildProvider.cs
- GACIdentityPermission.cs
- PopupControlService.cs
- NamespaceEmitter.cs
- DocumentAutomationPeer.cs
- RealProxy.cs
- ErrorRuntimeConfig.cs
- InstancePersistenceCommandException.cs
- SvcMapFile.cs
- CreateParams.cs
- XamlTemplateSerializer.cs
- ItemDragEvent.cs
- DropSource.cs
- QualifiedCellIdBoolean.cs
- ISAPIRuntime.cs
- WebScriptServiceHostFactory.cs
- TextBounds.cs
- StateDesigner.CommentLayoutGlyph.cs
- RijndaelCryptoServiceProvider.cs
- ReadOnlyMetadataCollection.cs
- ModelMemberCollection.cs
- MetadataReference.cs
- UserControlBuildProvider.cs
- ClientRuntimeConfig.cs
- HyperLinkStyle.cs
- ComContractElement.cs
- input.cs
- DataViewListener.cs
- RequestStatusBarUpdateEventArgs.cs
- HandleValueEditor.cs
- MenuCommandService.cs
- DrawingAttributes.cs
- DataGridToolTip.cs
- SplitterPanel.cs
- HashHelper.cs
- ThicknessAnimationUsingKeyFrames.cs
- XPathNodeIterator.cs
- ListenerAdaptersInstallComponent.cs
- TreeViewCancelEvent.cs
- RowUpdatedEventArgs.cs
- RepeatInfo.cs
- ObjectListCommandEventArgs.cs
- ColorConvertedBitmap.cs
- InputReportEventArgs.cs
- HandleCollector.cs
- AspNetPartialTrustHelpers.cs
- SerializationInfoEnumerator.cs
- RuntimeConfig.cs
- TypeElement.cs
- ClientSideQueueItem.cs
- SerializationUtility.cs
- ScriptingJsonSerializationSection.cs
- FtpWebRequest.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- HelpProvider.cs
- DelegatedStream.cs
- SignatureHelper.cs
- SrgsItemList.cs
- KnownColorTable.cs
- CultureInfoConverter.cs
- XamlBrushSerializer.cs
- LiteralControl.cs
- CallbackException.cs
- UIntPtr.cs
- ProfileModule.cs
- PathGeometry.cs
- FormsAuthenticationEventArgs.cs
- FamilyCollection.cs