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
- RTLAwareMessageBox.cs
- BasePropertyDescriptor.cs
- Font.cs
- ProcessModelSection.cs
- ThumbButtonInfoCollection.cs
- ListViewSortEventArgs.cs
- Compilation.cs
- BoolLiteral.cs
- TcpTransportElement.cs
- StylusButtonCollection.cs
- Literal.cs
- ProcessActivityTreeOptions.cs
- ReflectEventDescriptor.cs
- EdmProperty.cs
- UriTemplatePathSegment.cs
- JoinTreeNode.cs
- ListDictionaryInternal.cs
- Rect3DValueSerializer.cs
- HeaderedContentControl.cs
- SqlCommand.cs
- COM2PropertyBuilderUITypeEditor.cs
- ICspAsymmetricAlgorithm.cs
- DrawingAttributeSerializer.cs
- ImplicitInputBrush.cs
- ContextMenuAutomationPeer.cs
- QueryCacheKey.cs
- XmlMemberMapping.cs
- CellParagraph.cs
- LocalizableAttribute.cs
- MaterializeFromAtom.cs
- OrderByBuilder.cs
- ExtractorMetadata.cs
- MSG.cs
- Keywords.cs
- Condition.cs
- ClientRoleProvider.cs
- Selection.cs
- IListConverters.cs
- RuleSetCollection.cs
- SBCSCodePageEncoding.cs
- SqlDataAdapter.cs
- StructuralObject.cs
- WebPartMinimizeVerb.cs
- InlineObject.cs
- EventLogSession.cs
- SizeConverter.cs
- CellIdBoolean.cs
- BrushConverter.cs
- SimpleMailWebEventProvider.cs
- HtmlHistory.cs
- SamlAuthorityBinding.cs
- DesigntimeLicenseContext.cs
- SqlDataSourceAdvancedOptionsForm.cs
- DataColumnMapping.cs
- DataGridCellAutomationPeer.cs
- ToolbarAUtomationPeer.cs
- Formatter.cs
- XomlSerializationHelpers.cs
- WizardPanel.cs
- RSAOAEPKeyExchangeFormatter.cs
- ContractCodeDomInfo.cs
- Container.cs
- XmlDataSourceView.cs
- GridViewHeaderRowPresenter.cs
- GridViewCancelEditEventArgs.cs
- RuntimeHandles.cs
- WindowsSlider.cs
- ToolBarButtonDesigner.cs
- MailMessage.cs
- ThemeInfoAttribute.cs
- StyleSelector.cs
- UriSection.cs
- documentsequencetextcontainer.cs
- SignedXml.cs
- FrameworkElement.cs
- RegexCaptureCollection.cs
- CodeGroup.cs
- DataRowComparer.cs
- Parameter.cs
- LineSegment.cs
- CancellationHandler.cs
- SqlFileStream.cs
- Run.cs
- AttributeProviderAttribute.cs
- RemotingConfiguration.cs
- VariantWrapper.cs
- PropagatorResult.cs
- TreeNodeBindingCollection.cs
- Application.cs
- NameTable.cs
- CannotUnloadAppDomainException.cs
- MessageBox.cs
- BulletChrome.cs
- SineEase.cs
- log.cs
- HMACRIPEMD160.cs
- EntityDataSource.cs
- EventLogLink.cs
- D3DImage.cs
- ArrayList.cs