Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Runtime / CompilerServices / AssemblySettingAttributes.cs / 1305376 / 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
- PageBreakRecord.cs
- DiagnosticsConfigurationHandler.cs
- PeerReferralPolicy.cs
- EventLevel.cs
- Rules.cs
- WebPartExportVerb.cs
- SpecialNameAttribute.cs
- SectionXmlInfo.cs
- TextReader.cs
- ListBindableAttribute.cs
- TripleDES.cs
- Marshal.cs
- MdiWindowListItemConverter.cs
- TextEndOfParagraph.cs
- cache.cs
- CssTextWriter.cs
- ActivityStatusChangeEventArgs.cs
- NullEntityWrapper.cs
- ContractNamespaceAttribute.cs
- Material.cs
- EndpointDispatcherTable.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- ZipIORawDataFileBlock.cs
- SqlDataSourceWizardForm.cs
- IndicCharClassifier.cs
- Translator.cs
- DataRelation.cs
- SiteMapNode.cs
- DelayedRegex.cs
- RadioButtonStandardAdapter.cs
- PowerModeChangedEventArgs.cs
- NetworkInformationPermission.cs
- OwnerDrawPropertyBag.cs
- ScrollChangedEventArgs.cs
- MetadataUtilsSmi.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- ReadOnlyPropertyMetadata.cs
- Command.cs
- UInt64Converter.cs
- ScriptHandlerFactory.cs
- OrderedDictionary.cs
- XmlArrayItemAttributes.cs
- EllipticalNodeOperations.cs
- InternalControlCollection.cs
- XmlDesigner.cs
- WebZoneDesigner.cs
- DotNetATv1WindowsLogEntryDeserializer.cs
- MasterPage.cs
- SystemResourceHost.cs
- TabControlAutomationPeer.cs
- ValidatedControlConverter.cs
- TemplateInstanceAttribute.cs
- Decorator.cs
- CodeExpressionStatement.cs
- GeneralTransform3DCollection.cs
- TableParagraph.cs
- FontFamilyIdentifier.cs
- XPathQilFactory.cs
- _ProxyRegBlob.cs
- GlyphCache.cs
- HMACRIPEMD160.cs
- NameObjectCollectionBase.cs
- SapiGrammar.cs
- SafeHandles.cs
- ApplicationInfo.cs
- ClientEventManager.cs
- SpotLight.cs
- FormatterServicesNoSerializableCheck.cs
- EditorBrowsableAttribute.cs
- XPathMessageFilterElementComparer.cs
- DistinctQueryOperator.cs
- StructuralType.cs
- hresults.cs
- PageContentAsyncResult.cs
- SQLBoolean.cs
- CatalogPartDesigner.cs
- HeaderPanel.cs
- WrappedKeySecurityToken.cs
- TableChangeProcessor.cs
- BindValidator.cs
- CodeSnippetTypeMember.cs
- ParentQuery.cs
- TemplateParser.cs
- RoleService.cs
- _NegotiateClient.cs
- HttpCapabilitiesSectionHandler.cs
- SqlReorderer.cs
- GenerateHelper.cs
- SpecialTypeDataContract.cs
- EncryptedPackage.cs
- CanExecuteRoutedEventArgs.cs
- ConnectionConsumerAttribute.cs
- SizeChangedEventArgs.cs
- Invariant.cs
- LassoSelectionBehavior.cs
- figurelength.cs
- XmlSerializerSection.cs
- WindowsListViewSubItem.cs
- DesignBindingValueUIHandler.cs
- LogicalExpressionEditor.cs