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
- SpinLock.cs
- MenuItemStyleCollection.cs
- DodSequenceMerge.cs
- Icon.cs
- RegexStringValidatorAttribute.cs
- RIPEMD160Managed.cs
- ConfigurationStrings.cs
- WebEventCodes.cs
- ClientApiGenerator.cs
- MethodBody.cs
- IsolatedStorageFile.cs
- XmlSchemaValidator.cs
- DataFieldCollectionEditor.cs
- XmlComment.cs
- Transform.cs
- ColumnResizeUndoUnit.cs
- UndoUnit.cs
- CustomDictionarySources.cs
- TemplateBuilder.cs
- Page.cs
- ConfigurationHelpers.cs
- DataGridHeaderBorder.cs
- SecurityElement.cs
- TreeNodeCollectionEditor.cs
- HybridDictionary.cs
- PrintControllerWithStatusDialog.cs
- OperationDescriptionCollection.cs
- MultiBindingExpression.cs
- Monitor.cs
- Rule.cs
- ScrollChrome.cs
- UnitControl.cs
- IImplicitResourceProvider.cs
- TextParaClient.cs
- CopyAction.cs
- DataGridViewLinkColumn.cs
- Point3DAnimationUsingKeyFrames.cs
- EventRecord.cs
- LocatorGroup.cs
- LinkConverter.cs
- TableChangeProcessor.cs
- XmlLanguage.cs
- ArraySet.cs
- Compiler.cs
- DataSourceXmlTextReader.cs
- LeaseManager.cs
- ColumnMapTranslator.cs
- CursorInteropHelper.cs
- ReflectionPermission.cs
- SqlDataSourceParameterParser.cs
- UserNameSecurityTokenParameters.cs
- DoWorkEventArgs.cs
- XmlUtf8RawTextWriter.cs
- WebPartConnectionsCancelVerb.cs
- Rfc2898DeriveBytes.cs
- ControlCollection.cs
- DefaultMemberAttribute.cs
- RawStylusInputReport.cs
- TemplateControlParser.cs
- DataBoundLiteralControl.cs
- HttpHandlersSection.cs
- DirtyTextRange.cs
- SymbolEqualComparer.cs
- XmlNullResolver.cs
- UiaCoreApi.cs
- SqlMethodTransformer.cs
- TableCell.cs
- AppearanceEditorPart.cs
- TimerElapsedEvenArgs.cs
- BookmarkScope.cs
- Style.cs
- OdbcDataAdapter.cs
- PaperSource.cs
- BaseDataList.cs
- LineServices.cs
- ItemContainerGenerator.cs
- ControlCachePolicy.cs
- TreeViewBindingsEditorForm.cs
- DescendentsWalkerBase.cs
- ComponentResourceKey.cs
- Menu.cs
- ConfigXmlAttribute.cs
- TailCallAnalyzer.cs
- COSERVERINFO.cs
- TextureBrush.cs
- PropertyPushdownHelper.cs
- CommentAction.cs
- NetworkInterface.cs
- SettingsPropertyValue.cs
- RoleGroup.cs
- CommonDialog.cs
- UriTemplateTrieNode.cs
- EventLogPropertySelector.cs
- LinqDataSourceDisposeEventArgs.cs
- EventLogPermissionEntryCollection.cs
- ServiceMetadataContractBehavior.cs
- SqlParameterCollection.cs
- WsatAdminException.cs
- SecurityUtils.cs
- DesignerCategoryAttribute.cs