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
- DataGridViewLinkColumn.cs
- TableParaClient.cs
- HttpPostProtocolReflector.cs
- XPathBuilder.cs
- SystemWebCachingSectionGroup.cs
- DataBoundControl.cs
- CqlParser.cs
- ConnectionOrientedTransportManager.cs
- SByteConverter.cs
- DiscardableAttribute.cs
- ArcSegment.cs
- WmpBitmapDecoder.cs
- OrderingInfo.cs
- OracleCommandSet.cs
- ContentHostHelper.cs
- BrowserCapabilitiesFactoryBase.cs
- DynamicArgumentDialog.cs
- WorkflowFileItem.cs
- CultureTableRecord.cs
- OutputScope.cs
- PrePrepareMethodAttribute.cs
- RowUpdatingEventArgs.cs
- PermissionRequestEvidence.cs
- SqlNamer.cs
- MenuItemBinding.cs
- ScriptResourceHandler.cs
- IgnoreSectionHandler.cs
- CodeTypeReferenceCollection.cs
- MatcherBuilder.cs
- IndexerNameAttribute.cs
- Queue.cs
- ShaderEffect.cs
- ListBoxDesigner.cs
- WebBrowserNavigatedEventHandler.cs
- _ConnectionGroup.cs
- SoapFault.cs
- CTreeGenerator.cs
- httpapplicationstate.cs
- XmlWrappingWriter.cs
- UnsafeNativeMethods.cs
- UnknownBitmapDecoder.cs
- SafeSecurityHelper.cs
- DebugHandleTracker.cs
- HasActivatableWorkflowEvent.cs
- ObjectAssociationEndMapping.cs
- TraceSection.cs
- XamlPointCollectionSerializer.cs
- ErrorWebPart.cs
- PresentationAppDomainManager.cs
- CatalogZone.cs
- CombinedGeometry.cs
- SendMailErrorEventArgs.cs
- TimeSpanMinutesConverter.cs
- CompareValidator.cs
- ManagedFilter.cs
- ReplyChannelAcceptor.cs
- _DigestClient.cs
- TableRow.cs
- BuildProviderCollection.cs
- ArrayElementGridEntry.cs
- MD5CryptoServiceProvider.cs
- SafeNativeMethods.cs
- WSSecurityPolicy12.cs
- ThicknessConverter.cs
- SystemFonts.cs
- WebPartManager.cs
- EntryWrittenEventArgs.cs
- NumericUpDown.cs
- TableStyle.cs
- XPathAncestorIterator.cs
- EpmSourceTree.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- BinaryObjectReader.cs
- WebPartConnectionsConfigureVerb.cs
- Stack.cs
- FixedTextView.cs
- XmlWrappingReader.cs
- InstanceOwnerException.cs
- AssertUtility.cs
- TreeViewHitTestInfo.cs
- SQLSingleStorage.cs
- SplayTreeNode.cs
- UpdatePanelControlTrigger.cs
- XPathBinder.cs
- DataServiceQuery.cs
- TypeForwardedToAttribute.cs
- ProcessModelSection.cs
- EditingMode.cs
- SafeEventHandle.cs
- ParenthesizePropertyNameAttribute.cs
- ObjectParameterCollection.cs
- ExpressionPrefixAttribute.cs
- CmsUtils.cs
- ShaderEffect.cs
- MethodBuilder.cs
- ChtmlTextBoxAdapter.cs
- InputReportEventArgs.cs
- ElementAction.cs
- SByteStorage.cs
- StructuralType.cs