Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / clr / src / BCL / System / Runtime / CompilerServices / AssemblySettingAttributes.cs / 1 / AssemblySettingAttributes.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== //////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////// namespace System.Runtime.CompilerServices { using System; using System.Runtime.InteropServices; /* NGenHint is not supported in Whidbey [Serializable] public enum NGenHint { Default = 0x0000, // No preference specified Eager = 0x0001, // NGen at install time Lazy = 0x0002, // NGen after install time Never = 0x0003, // Assembly should not be ngened } */ [Serializable] public enum LoadHint { Default = 0x0000, // No preference specified Always = 0x0001, // Dependency is always loaded Sometimes = 0x0002, // Dependency is sometimes loaded //Never = 0x0003, // Dependency is never loaded } [Serializable, AttributeUsage(AttributeTargets.Assembly)] public sealed class DefaultDependencyAttribute : Attribute { private LoadHint loadHint; public DefaultDependencyAttribute ( LoadHint loadHintArgument ) { loadHint = loadHintArgument; } public LoadHint LoadHint { get { return loadHint; } } } [Serializable, AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] public sealed class DependencyAttribute : Attribute { private String dependentAssembly; private LoadHint loadHint; public DependencyAttribute ( String dependentAssemblyArgument, LoadHint loadHintArgument ) { dependentAssembly = dependentAssemblyArgument; loadHint = loadHintArgument; } public String DependentAssembly { get { return dependentAssembly; } } public LoadHint LoadHint { get { return loadHint; } } } } // 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.Runtime.InteropServices; /* NGenHint is not supported in Whidbey [Serializable] public enum NGenHint { Default = 0x0000, // No preference specified Eager = 0x0001, // NGen at install time Lazy = 0x0002, // NGen after install time Never = 0x0003, // Assembly should not be ngened } */ [Serializable] public enum LoadHint { Default = 0x0000, // No preference specified Always = 0x0001, // Dependency is always loaded Sometimes = 0x0002, // Dependency is sometimes loaded //Never = 0x0003, // Dependency is never loaded } [Serializable, AttributeUsage(AttributeTargets.Assembly)] public sealed class DefaultDependencyAttribute : Attribute { private LoadHint loadHint; public DefaultDependencyAttribute ( LoadHint loadHintArgument ) { loadHint = loadHintArgument; } public LoadHint LoadHint { get { return loadHint; } } } [Serializable, AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] public sealed class DependencyAttribute : Attribute { private String dependentAssembly; private LoadHint loadHint; public DependencyAttribute ( String dependentAssemblyArgument, LoadHint loadHintArgument ) { dependentAssembly = dependentAssemblyArgument; loadHint = loadHintArgument; } public String DependentAssembly { get { return dependentAssembly; } } public LoadHint LoadHint { get { return loadHint; } } } } // 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
- ActivationArguments.cs
- GenericRootAutomationPeer.cs
- TextProperties.cs
- RadioButtonPopupAdapter.cs
- NameValueCollection.cs
- ToolStripSystemRenderer.cs
- DaylightTime.cs
- PrivateFontCollection.cs
- CodeParameterDeclarationExpressionCollection.cs
- ConnectionStringsSection.cs
- _SslState.cs
- UriWriter.cs
- GPStream.cs
- SqlDataSourceCommandParser.cs
- SQLBinaryStorage.cs
- IsolatedStorage.cs
- SHA384.cs
- DataControlReferenceCollection.cs
- TextDocumentView.cs
- UseAttributeSetsAction.cs
- MetadataPropertyCollection.cs
- ErrorView.xaml.cs
- WorkflowApplicationAbortedException.cs
- GraphicsPathIterator.cs
- Documentation.cs
- RoutedEventValueSerializer.cs
- HtmlForm.cs
- DiscreteKeyFrames.cs
- VerificationAttribute.cs
- EntityContainerEmitter.cs
- ToolStripGripRenderEventArgs.cs
- FatalException.cs
- HGlobalSafeHandle.cs
- XmlNamedNodeMap.cs
- TextOnlyOutput.cs
- DuplicateDetector.cs
- CroppedBitmap.cs
- Or.cs
- TTSEngineProxy.cs
- FontDialog.cs
- ValueTypeFixupInfo.cs
- DataGridViewCheckBoxColumn.cs
- TreeNode.cs
- EdmToObjectNamespaceMap.cs
- hresults.cs
- DesignerSerializationVisibilityAttribute.cs
- DataSysAttribute.cs
- WeakEventTable.cs
- VideoDrawing.cs
- DrawingState.cs
- HelpEvent.cs
- XpsPackagingPolicy.cs
- PrintPageEvent.cs
- Interlocked.cs
- ScriptControlManager.cs
- X509ChainPolicy.cs
- PropertyBuilder.cs
- GCHandleCookieTable.cs
- DataSourceControl.cs
- VisualState.cs
- EncodingInfo.cs
- HttpDateParse.cs
- QilLoop.cs
- SoapDocumentServiceAttribute.cs
- XmlSchemaAttributeGroupRef.cs
- ListViewItem.cs
- Serializer.cs
- ToolStripContainerActionList.cs
- NamespaceList.cs
- BuilderInfo.cs
- MultilineStringConverter.cs
- ScriptingSectionGroup.cs
- RegisteredHiddenField.cs
- SafeProcessHandle.cs
- StringBlob.cs
- CharUnicodeInfo.cs
- CheckedPointers.cs
- ImageInfo.cs
- SchemaNames.cs
- PropertyValueUIItem.cs
- IndexingContentUnit.cs
- ActionItem.cs
- Crc32.cs
- DynamicDocumentPaginator.cs
- Literal.cs
- PropVariant.cs
- DataGridColumn.cs
- AutomationElementCollection.cs
- Calendar.cs
- ListViewDataItem.cs
- TextCompositionEventArgs.cs
- WebReferenceOptions.cs
- SystemIPInterfaceProperties.cs
- TileModeValidation.cs
- DependencyObjectValidator.cs
- XappLauncher.cs
- FileStream.cs
- AdjustableArrowCap.cs
- GeometryConverter.cs
- EventsTab.cs