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
- AudioFormatConverter.cs
- RawUIStateInputReport.cs
- MatrixAnimationUsingPath.cs
- HashCodeCombiner.cs
- ActivityExecutorOperation.cs
- EntityTypeBase.cs
- PropertyChangeTracker.cs
- SqlFormatter.cs
- WindowsRebar.cs
- TypeUtils.cs
- MenuCommandService.cs
- HttpCookieCollection.cs
- Msmq4SubqueuePoisonHandler.cs
- MenuItemStyleCollection.cs
- VisualCollection.cs
- loginstatus.cs
- NestPullup.cs
- DataGridCell.cs
- HorizontalAlignConverter.cs
- FunctionNode.cs
- BoolExpr.cs
- EndEvent.cs
- CalendarDay.cs
- ThreadAbortException.cs
- DataGridPageChangedEventArgs.cs
- BooleanKeyFrameCollection.cs
- ElementHostAutomationPeer.cs
- ObjectParameter.cs
- Exceptions.cs
- StringUtil.cs
- EntityUtil.cs
- CodeTypeParameterCollection.cs
- XamlInt32CollectionSerializer.cs
- WebPartExportVerb.cs
- SolidColorBrush.cs
- XsdDataContractImporter.cs
- HtmlTable.cs
- HttpClientCertificate.cs
- ImageInfo.cs
- PostBackOptions.cs
- UserMapPath.cs
- ISAPIRuntime.cs
- TableRowCollection.cs
- PropertyGeneratedEventArgs.cs
- AQNBuilder.cs
- ConversionValidationRule.cs
- TypeUsageBuilder.cs
- CLRBindingWorker.cs
- XmlMapping.cs
- KeyConstraint.cs
- EntityDataSourceUtil.cs
- PersonalizationProvider.cs
- ScriptingRoleServiceSection.cs
- HttpProtocolImporter.cs
- nulltextcontainer.cs
- ChannelOptions.cs
- InvalidateEvent.cs
- CatalogPartCollection.cs
- GorillaCodec.cs
- SchemaLookupTable.cs
- WeakReferenceKey.cs
- WarningException.cs
- EventSinkHelperWriter.cs
- CompilationSection.cs
- AxHost.cs
- MembershipPasswordException.cs
- SystemTcpConnection.cs
- ClientEventManager.cs
- FormattedText.cs
- InputMethodStateChangeEventArgs.cs
- isolationinterop.cs
- ControlUtil.cs
- DBConnection.cs
- Activator.cs
- DesignerActionUI.cs
- SqlGatherConsumedAliases.cs
- Boolean.cs
- StringCollectionMarkupSerializer.cs
- InstanceLockQueryResult.cs
- XmlElementList.cs
- AnnotationMap.cs
- LocalServiceSecuritySettingsElement.cs
- DataFormats.cs
- LabelLiteral.cs
- MulticastDelegate.cs
- FileClassifier.cs
- MemberInfoSerializationHolder.cs
- BitHelper.cs
- X509ChainPolicy.cs
- ZipIOFileItemStream.cs
- SqlVisitor.cs
- PageTheme.cs
- SortedDictionary.cs
- ProxyGenerator.cs
- WmlValidatorAdapter.cs
- VBIdentifierDesigner.xaml.cs
- ReflectionServiceProvider.cs
- XmlDocumentSerializer.cs
- Control.cs
- NamedPipeConnectionPoolSettings.cs