Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Runtime / NgenServicingAttributes.cs / 1305376 / NgenServicingAttributes.cs
using System; namespace System.Runtime { [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] public sealed class AssemblyTargetedPatchBandAttribute : Attribute { private String m_targetedPatchBand; public AssemblyTargetedPatchBandAttribute(String targetedPatchBand) { m_targetedPatchBand = targetedPatchBand; } public String TargetedPatchBand { get { return m_targetedPatchBand; } } } // This attribute seems particularly prone to accidental inclusion in bcl.small // We would only want to do so intentionally (if targeted patching were enabled there) #if !FEATURE_CORECLR //============================================================================================================ // [TargetedPatchingOptOutAttribute("Performance critical to inline across NGen image boundaries")] - // Sacrifices cheap servicing of a method body in order to allow unrestricted inlining. Certain types of // trivial methods (e.g. simple property getters) are automatically attributed by ILCA.EXE during the build. // For other performance critical methods, it should be added manually. //=========================================================================================================== [AttributeUsage(AttributeTargets.Method | AttributeTargets.Constructor, AllowMultiple = false, Inherited = false)] public sealed class TargetedPatchingOptOutAttribute : Attribute { private String m_reason; public TargetedPatchingOptOutAttribute(String reason) { m_reason = reason; } public String Reason { get { return m_reason; } } private TargetedPatchingOptOutAttribute() { } } #endif //=========================================================================================================== // [ForceTokenStabilization] - Using this CA forces ILCA.EXE to stabilize the attached type, method or field. // We use this to identify private helper methods invoked by IL stubs. // // NOTE: Attaching this to a type is NOT equivalent to attaching it to all of its methods! //=========================================================================================================== [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Interface | AttributeTargets.Method | AttributeTargets.Constructor | AttributeTargets.Field , AllowMultiple = false, Inherited = false)] sealed class ForceTokenStabilizationAttribute : Attribute { public ForceTokenStabilizationAttribute() { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. using System; namespace System.Runtime { [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] public sealed class AssemblyTargetedPatchBandAttribute : Attribute { private String m_targetedPatchBand; public AssemblyTargetedPatchBandAttribute(String targetedPatchBand) { m_targetedPatchBand = targetedPatchBand; } public String TargetedPatchBand { get { return m_targetedPatchBand; } } } // This attribute seems particularly prone to accidental inclusion in bcl.small // We would only want to do so intentionally (if targeted patching were enabled there) #if !FEATURE_CORECLR //============================================================================================================ // [TargetedPatchingOptOutAttribute("Performance critical to inline across NGen image boundaries")] - // Sacrifices cheap servicing of a method body in order to allow unrestricted inlining. Certain types of // trivial methods (e.g. simple property getters) are automatically attributed by ILCA.EXE during the build. // For other performance critical methods, it should be added manually. //=========================================================================================================== [AttributeUsage(AttributeTargets.Method | AttributeTargets.Constructor, AllowMultiple = false, Inherited = false)] public sealed class TargetedPatchingOptOutAttribute : Attribute { private String m_reason; public TargetedPatchingOptOutAttribute(String reason) { m_reason = reason; } public String Reason { get { return m_reason; } } private TargetedPatchingOptOutAttribute() { } } #endif //=========================================================================================================== // [ForceTokenStabilization] - Using this CA forces ILCA.EXE to stabilize the attached type, method or field. // We use this to identify private helper methods invoked by IL stubs. // // NOTE: Attaching this to a type is NOT equivalent to attaching it to all of its methods! //=========================================================================================================== [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Interface | AttributeTargets.Method | AttributeTargets.Constructor | AttributeTargets.Field , AllowMultiple = false, Inherited = false)] sealed class ForceTokenStabilizationAttribute : Attribute { public ForceTokenStabilizationAttribute() { } } } // 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
- MsmqIntegrationChannelFactory.cs
- StructuredTypeInfo.cs
- ClientRuntimeConfig.cs
- TypeUtil.cs
- KeyGestureConverter.cs
- ZipIOModeEnforcingStream.cs
- DifferencingCollection.cs
- PointIndependentAnimationStorage.cs
- PositiveTimeSpanValidator.cs
- RoleGroup.cs
- WindowsPrincipal.cs
- ConcurrentBag.cs
- Int32CollectionConverter.cs
- X509Utils.cs
- GetLastErrorDetailsRequest.cs
- FixedMaxHeap.cs
- TrackBar.cs
- XNameTypeConverter.cs
- TextSyndicationContentKindHelper.cs
- HandlerMappingMemo.cs
- ArgumentException.cs
- ChameleonKey.cs
- StylusButtonEventArgs.cs
- CompilerTypeWithParams.cs
- InvalidCastException.cs
- Menu.cs
- CheckBoxFlatAdapter.cs
- ToolStripPanelRenderEventArgs.cs
- EventMappingSettings.cs
- _TLSstream.cs
- ValidateNames.cs
- SamlAuthenticationStatement.cs
- RemoteWebConfigurationHostServer.cs
- CompareValidator.cs
- ToolStripSplitButton.cs
- FastEncoderWindow.cs
- nulltextnavigator.cs
- XmlSchemaException.cs
- CriticalFinalizerObject.cs
- QilValidationVisitor.cs
- ExtensibleClassFactory.cs
- QilUnary.cs
- RecognizerStateChangedEventArgs.cs
- DataListCommandEventArgs.cs
- WindowsFormsHelpers.cs
- ScriptBehaviorDescriptor.cs
- UserControlParser.cs
- SafeNativeMethods.cs
- QilStrConcat.cs
- XPathConvert.cs
- PeoplePickerWrapper.cs
- LinqDataSourceSelectEventArgs.cs
- EventSourceCreationData.cs
- TabItemAutomationPeer.cs
- SoapEnvelopeProcessingElement.cs
- SQLBinary.cs
- ObjectListItem.cs
- DbConnectionPoolIdentity.cs
- DescriptionAttribute.cs
- XpsImage.cs
- EdmScalarPropertyAttribute.cs
- CDSCollectionETWBCLProvider.cs
- FacetEnabledSchemaElement.cs
- TrimSurroundingWhitespaceAttribute.cs
- ChannelTerminatedException.cs
- InputLanguageSource.cs
- FlowLayout.cs
- safesecurityhelperavalon.cs
- TrackingMemoryStream.cs
- Funcletizer.cs
- X509CertificateCollection.cs
- BindableTemplateBuilder.cs
- WindowsFormsHelpers.cs
- ScrollItemPatternIdentifiers.cs
- HMACSHA1.cs
- ApplyImportsAction.cs
- CustomWebEventKey.cs
- TerminateSequenceResponse.cs
- BitmapCacheBrush.cs
- ProfileProvider.cs
- StorageRoot.cs
- FlagsAttribute.cs
- ProcessHostMapPath.cs
- StringValidatorAttribute.cs
- RequestCachingSection.cs
- SqlConnectionPoolProviderInfo.cs
- SafeNativeMethods.cs
- SupportsPreviewControlAttribute.cs
- WorkflowFileItem.cs
- PropagatorResult.cs
- ClientBuildManager.cs
- DrawingGroup.cs
- WSSecurityJan2004.cs
- ReaderWriterLockSlim.cs
- SamlConstants.cs
- TimeSpanMinutesConverter.cs
- WorkflowServiceHostFactory.cs
- ViewStateAttachedPropertyFeature.cs
- ElementAction.cs
- LoginName.cs