Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- SqlUnionizer.cs
- CommandValueSerializer.cs
- SrgsOneOf.cs
- TextBoxLine.cs
- ObjectListCommandsPage.cs
- ExtendedProtectionPolicyTypeConverter.cs
- CqlIdentifiers.cs
- HandledMouseEvent.cs
- FieldNameLookup.cs
- DocumentOrderQuery.cs
- Crc32Helper.cs
- DataGridViewCellStyleChangedEventArgs.cs
- securestring.cs
- validationstate.cs
- DbMetaDataFactory.cs
- ResourceAttributes.cs
- SqlFormatter.cs
- TextOutput.cs
- ListSourceHelper.cs
- RegexWorker.cs
- DbConnectionPoolOptions.cs
- SystemIPGlobalProperties.cs
- TreeNode.cs
- QuaternionRotation3D.cs
- CodeConstructor.cs
- VersionPair.cs
- ProfileSettingsCollection.cs
- TemplateKeyConverter.cs
- PassportIdentity.cs
- DescendentsWalker.cs
- MsmqBindingElementBase.cs
- AttachedAnnotationChangedEventArgs.cs
- WinFormsSpinner.cs
- ConfigXmlWhitespace.cs
- WinCategoryAttribute.cs
- DataGridViewTextBoxEditingControl.cs
- IUnknownConstantAttribute.cs
- MarkupCompilePass2.cs
- StringWriter.cs
- TimelineCollection.cs
- FramingChannels.cs
- Attributes.cs
- SoapTypeAttribute.cs
- XamlTreeBuilder.cs
- VirtualPathProvider.cs
- PKCS1MaskGenerationMethod.cs
- ContentAlignmentEditor.cs
- CheckBoxRenderer.cs
- MenuTracker.cs
- AxDesigner.cs
- VirtualPathProvider.cs
- Maps.cs
- DataGridViewBand.cs
- BamlMapTable.cs
- EntityRecordInfo.cs
- MultilineStringConverter.cs
- PanelStyle.cs
- TryCatchDesigner.xaml.cs
- ListControlDataBindingHandler.cs
- ForceCopyBuildProvider.cs
- TextParaLineResult.cs
- ButtonRenderer.cs
- NamespaceQuery.cs
- ChangePassword.cs
- ProcessModule.cs
- MultiTouchSystemGestureLogic.cs
- XmlDataProvider.cs
- XmlElementCollection.cs
- BlurBitmapEffect.cs
- BitSet.cs
- DoubleCollectionConverter.cs
- OleAutBinder.cs
- State.cs
- MatrixValueSerializer.cs
- XmlEncoding.cs
- ExchangeUtilities.cs
- ViewKeyConstraint.cs
- ToolStripDropDownButton.cs
- FrameworkRichTextComposition.cs
- XmlUrlResolver.cs
- CalloutQueueItem.cs
- PackageRelationship.cs
- Repeater.cs
- DurableServiceAttribute.cs
- DataContractJsonSerializer.cs
- FactoryGenerator.cs
- MissingManifestResourceException.cs
- ResolvePPIDRequest.cs
- Trace.cs
- RichTextBox.cs
- SymDocumentType.cs
- Geometry.cs
- KeyedPriorityQueue.cs
- RemoteWebConfigurationHostServer.cs
- MSAAEventDispatcher.cs
- SchemeSettingElementCollection.cs
- XmlSubtreeReader.cs
- DbModificationCommandTree.cs
- MouseButton.cs
- ICspAsymmetricAlgorithm.cs