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
- DateTimePicker.cs
- BitmapMetadataEnumerator.cs
- ThreadLocal.cs
- UserPrincipalNameElement.cs
- UrlPath.cs
- DLinqColumnProvider.cs
- CopyNodeSetAction.cs
- Environment.cs
- RepeaterItemEventArgs.cs
- TextUtf8RawTextWriter.cs
- AssociatedControlConverter.cs
- BitmapImage.cs
- KnownBoxes.cs
- EntityProxyTypeInfo.cs
- FileDocument.cs
- OdbcErrorCollection.cs
- PresentationSource.cs
- StringFunctions.cs
- FrameworkElementFactoryMarkupObject.cs
- X509Chain.cs
- LexicalChunk.cs
- NameObjectCollectionBase.cs
- Win32KeyboardDevice.cs
- ScopeCompiler.cs
- XsdCachingReader.cs
- DrawListViewColumnHeaderEventArgs.cs
- CodeTypeParameter.cs
- ToolStripItemBehavior.cs
- NameGenerator.cs
- InputLangChangeRequestEvent.cs
- WebPartZoneBase.cs
- TransformGroup.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- XmlReflectionMember.cs
- CompareInfo.cs
- StoreUtilities.cs
- CompilationUnit.cs
- AttachmentCollection.cs
- MenuAdapter.cs
- PrePostDescendentsWalker.cs
- FormParameter.cs
- DocumentXPathNavigator.cs
- PersonalizationAdministration.cs
- ColorAnimationUsingKeyFrames.cs
- HyperLinkStyle.cs
- MergePropertyDescriptor.cs
- XhtmlBasicCommandAdapter.cs
- ReadOnlyDataSource.cs
- ProcessHostConfigUtils.cs
- COM2PropertyDescriptor.cs
- SimpleRecyclingCache.cs
- SynchronizedReadOnlyCollection.cs
- ScriptComponentDescriptor.cs
- ClientScriptManagerWrapper.cs
- PriorityItem.cs
- OperationGenerator.cs
- FlowDocument.cs
- URLString.cs
- DataRelationCollection.cs
- ContentType.cs
- IndexerNameAttribute.cs
- DataControlLinkButton.cs
- Stroke2.cs
- Pkcs9Attribute.cs
- CustomError.cs
- ConvertersCollection.cs
- EntryPointNotFoundException.cs
- CorrelationManager.cs
- MultiPropertyDescriptorGridEntry.cs
- ConnectionManagementElementCollection.cs
- UTF7Encoding.cs
- DataGridSortCommandEventArgs.cs
- HtmlAnchor.cs
- XPathAxisIterator.cs
- ScrollItemPattern.cs
- ModelItemDictionaryImpl.cs
- StringConverter.cs
- SingleResultAttribute.cs
- ReferentialConstraint.cs
- MethodCallTranslator.cs
- HttpSessionStateWrapper.cs
- WriteFileContext.cs
- TextUtf8RawTextWriter.cs
- XmlSortKeyAccumulator.cs
- SapiRecoInterop.cs
- COM2Enum.cs
- GridViewRowCollection.cs
- CommandField.cs
- AutoGeneratedFieldProperties.cs
- RepeatInfo.cs
- FastEncoder.cs
- ProfileGroupSettingsCollection.cs
- OleDbErrorCollection.cs
- CharEntityEncoderFallback.cs
- XmlSchemaSimpleContent.cs
- PropertyInfo.cs
- NetworkInformationException.cs
- CompressionTracing.cs
- IdnMapping.cs
- TemplateKeyConverter.cs