Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / clr / src / BCL / System / Runtime / CompilerServices / AssemblySettingAttributes.cs / 2 / 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
- DataGridViewCellParsingEventArgs.cs
- QueryRewriter.cs
- PeerInputChannel.cs
- LabelEditEvent.cs
- BamlResourceContent.cs
- SharedPerformanceCounter.cs
- SmiXetterAccessMap.cs
- Msec.cs
- ConfigXmlCDataSection.cs
- LinkedResourceCollection.cs
- Storyboard.cs
- GuidTagList.cs
- sqlcontext.cs
- EntityConnectionStringBuilder.cs
- DomNameTable.cs
- CodeTypeMember.cs
- MessageEncoderFactory.cs
- ChangePasswordAutoFormat.cs
- FontDialog.cs
- XamlTypeMapper.cs
- DbDataRecord.cs
- SafeRightsManagementQueryHandle.cs
- KeyedCollection.cs
- regiisutil.cs
- IgnoreSectionHandler.cs
- XmlReaderSettings.cs
- InternalUserCancelledException.cs
- TableItemStyle.cs
- ComPlusInstanceContextInitializer.cs
- ClientRolePrincipal.cs
- StandardRuntimeEnumValidatorAttribute.cs
- EventWaitHandleSecurity.cs
- DefaultShape.cs
- ReferenceEqualityComparer.cs
- XmlName.cs
- Cursor.cs
- ConsumerConnectionPointCollection.cs
- ToolStripMenuItem.cs
- TypeContext.cs
- UnsafeNativeMethods.cs
- ProfileGroupSettingsCollection.cs
- IsolatedStorageFilePermission.cs
- CodeObject.cs
- ListViewItem.cs
- base64Transforms.cs
- ValueQuery.cs
- ChildTable.cs
- ProviderMetadataCachedInformation.cs
- ArgumentNullException.cs
- Pts.cs
- webclient.cs
- TextInfo.cs
- PaperSize.cs
- KeyGesture.cs
- ConfigurationPropertyAttribute.cs
- DocumentCollection.cs
- WebPartZone.cs
- MessageSecurityVersion.cs
- BrowserPolicyValidator.cs
- TypeInitializationException.cs
- ClientConfigPaths.cs
- XPathParser.cs
- XmlNullResolver.cs
- LinqDataSourceView.cs
- ListSortDescription.cs
- XPathItem.cs
- UTF8Encoding.cs
- MachineKeyConverter.cs
- _RequestLifetimeSetter.cs
- Line.cs
- LookupBindingPropertiesAttribute.cs
- LookupBindingPropertiesAttribute.cs
- EtwProvider.cs
- WebPartCollection.cs
- altserialization.cs
- VectorKeyFrameCollection.cs
- EditingMode.cs
- WebBaseEventKeyComparer.cs
- TreeWalkHelper.cs
- COSERVERINFO.cs
- SupportsPreviewControlAttribute.cs
- DesignSurface.cs
- SiteMembershipCondition.cs
- ValueProviderWrapper.cs
- RawStylusInputReport.cs
- Schema.cs
- TextDecoration.cs
- WebPartMenu.cs
- RowUpdatingEventArgs.cs
- SchemaConstraints.cs
- XmlIlGenerator.cs
- MDIClient.cs
- DataGridViewElement.cs
- XPathDocumentBuilder.cs
- printdlgexmarshaler.cs
- SplitContainerDesigner.cs
- Registry.cs
- ProtectedConfiguration.cs
- SQLCharsStorage.cs
- StyleModeStack.cs