Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / clr / src / BCL / System / Internal.cs / 1 / Internal.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** This file exists to contain miscellaneous module-level attributes ** and other miscellaneous stuff. ** ** ** ===========================================================*/ using System.Runtime.InteropServices; using System.Runtime.CompilerServices; using System.Collections.Generic; using System.Reflection; #if FEATURE_COMINTEROP [assembly:Guid("BED7F4EA-1A96-11d2-8F08-00A0C9A6186D")] // The following attribute are required to ensure COM compatibility. [assembly:System.Runtime.InteropServices.ComCompatibleVersion(1, 0, 3300, 0)] [assembly:System.Runtime.InteropServices.TypeLibVersion(2, 0)] #endif // FEATURE_COMINTEROP [assembly:DefaultDependencyAttribute(LoadHint.Always)] // mscorlib would like to have its literal strings frozen if possible [assembly: System.Runtime.CompilerServices.StringFreezingAttribute()] namespace System { static class Internal { // This method is purely an aid for NGen to statically deduce which // instantiations to save in the ngen image. // Otherwise, the JIT-compiler gets used, which is bad for working-set. // Note that IBC can provide this information too. // However, this helps in keeping the JIT-compiler out even for // test scenarios which do not use IBC. // This can be removed after V2, when we implement other schemes // of keeping the JIT-compiler out for generic instantiations. static void CommonlyUsedGenericInstantiations_HACK() { // Make absolutely sure we include some of the most common // instantiations here in mscorlib's ngen image. // Note that reference type instantiations are already included // automatically for us. new ArraySegment(new byte[1], 0, 0); new Dictionary (); new Dictionary (); new Dictionary (); new Dictionary (); new Dictionary (); new Dictionary (); new Dictionary
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlIncludeAttribute.cs
- DataSpaceManager.cs
- StyleCollection.cs
- EntityContainerEmitter.cs
- StylusSystemGestureEventArgs.cs
- PersistenceContextEnlistment.cs
- DefaultTextStoreTextComposition.cs
- TimeZone.cs
- DeviceFilterEditorDialog.cs
- NumberAction.cs
- TeredoHelper.cs
- Currency.cs
- DesignerAttribute.cs
- Stylesheet.cs
- GridViewSortEventArgs.cs
- RoleGroup.cs
- Int16Converter.cs
- FixedPosition.cs
- IncomingWebResponseContext.cs
- XmlUtilWriter.cs
- XmlImplementation.cs
- ReflectTypeDescriptionProvider.cs
- HighlightVisual.cs
- ProvidePropertyAttribute.cs
- ZipFileInfoCollection.cs
- ReceiveMessageAndVerifySecurityAsyncResultBase.cs
- MdiWindowListItemConverter.cs
- ColorEditor.cs
- DataBoundControl.cs
- GroupBoxAutomationPeer.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- Point4D.cs
- PageCodeDomTreeGenerator.cs
- ExceptionHandlersDesigner.cs
- SecurityResources.cs
- Match.cs
- IncrementalHitTester.cs
- FolderBrowserDialog.cs
- Clock.cs
- SoapAttributes.cs
- TableRow.cs
- DataGridItemCollection.cs
- DataGridViewColumn.cs
- TabControlDesigner.cs
- DesignTimeVisibleAttribute.cs
- DesignerOptionService.cs
- ReachDocumentSequenceSerializer.cs
- FacetEnabledSchemaElement.cs
- NamespaceCollection.cs
- FlowDocumentPaginator.cs
- AnnotationService.cs
- DelegateSerializationHolder.cs
- NamedPipeTransportBindingElement.cs
- UnmanagedMemoryStream.cs
- ExpressionBinding.cs
- OptimalBreakSession.cs
- PreviewKeyDownEventArgs.cs
- ColorKeyFrameCollection.cs
- DataGridViewBand.cs
- EntityRecordInfo.cs
- PointAnimationUsingKeyFrames.cs
- XmlFormatExtensionAttribute.cs
- CapabilitiesState.cs
- HtmlSelect.cs
- FixedPageAutomationPeer.cs
- DoubleLink.cs
- AssemblyCache.cs
- RepeatBehavior.cs
- RoleService.cs
- FormatConvertedBitmap.cs
- PriorityChain.cs
- TransformerConfigurationWizardBase.cs
- SessionPageStatePersister.cs
- EnumMemberAttribute.cs
- listviewsubitemcollectioneditor.cs
- ConfigUtil.cs
- GeneralTransform.cs
- SoapEnumAttribute.cs
- DropShadowEffect.cs
- CommonRemoteMemoryBlock.cs
- StylusPointCollection.cs
- ViewService.cs
- Span.cs
- RepeatButtonAutomationPeer.cs
- HttpStreamMessage.cs
- ALinqExpressionVisitor.cs
- Codec.cs
- ActivityExecutor.cs
- WFItemsToSpacerVisibility.cs
- securestring.cs
- CheckoutException.cs
- SafeMILHandleMemoryPressure.cs
- OleDbErrorCollection.cs
- DbSourceParameterCollection.cs
- ConfigurationLockCollection.cs
- DataGridCaption.cs
- ConfigurationConverterBase.cs
- Encoder.cs
- ColumnHeaderConverter.cs
- LoadedOrUnloadedOperation.cs