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
- AssemblySettingAttributes.cs
- DataServiceQueryOfT.cs
- ChannelCacheSettings.cs
- StringExpressionSet.cs
- FormsIdentity.cs
- SelfIssuedAuthProofToken.cs
- ArrayEditor.cs
- remotingproxy.cs
- ValidatorCollection.cs
- Button.cs
- SerializationAttributes.cs
- Quack.cs
- XmlQualifiedName.cs
- CodeIterationStatement.cs
- WebRequestModulesSection.cs
- LoadMessageLogger.cs
- ObjectListGeneralPage.cs
- EnumerableRowCollectionExtensions.cs
- AssociationSetMetadata.cs
- MultiBindingExpression.cs
- isolationinterop.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- SqlCaseSimplifier.cs
- ChangeTracker.cs
- BufferedGraphics.cs
- WebPartEditorOkVerb.cs
- DataService.cs
- DeclaredTypeElementCollection.cs
- sqlpipe.cs
- ObjectParameter.cs
- WebControl.cs
- AsyncDataRequest.cs
- WebPartEditorCancelVerb.cs
- SingleAnimation.cs
- MultiByteCodec.cs
- DefaultBindingPropertyAttribute.cs
- ExtendedPropertyDescriptor.cs
- DynamicFilter.cs
- DoubleAnimationBase.cs
- WSSecureConversationFeb2005.cs
- HelpInfo.cs
- SortExpressionBuilder.cs
- Single.cs
- RichTextBoxConstants.cs
- CodeTypeConstructor.cs
- PermissionSetEnumerator.cs
- ProfileEventArgs.cs
- AlignmentXValidation.cs
- SqlLiftWhereClauses.cs
- RijndaelManaged.cs
- SecurityTokenAttachmentMode.cs
- UserControlFileEditor.cs
- EditorZoneBase.cs
- VectorKeyFrameCollection.cs
- TreeNodeBindingCollection.cs
- FilterQuery.cs
- IPipelineRuntime.cs
- DataPagerFieldCommandEventArgs.cs
- HideDisabledControlAdapter.cs
- DialogResultConverter.cs
- ListBindingConverter.cs
- BrushMappingModeValidation.cs
- HttpListenerContext.cs
- ParameterBinding.cs
- DocumentXmlWriter.cs
- CellQuery.cs
- TransactionScopeDesigner.cs
- DataSourceNameHandler.cs
- ImageDrawing.cs
- DataGridRowHeaderAutomationPeer.cs
- ScriptResourceInfo.cs
- DataGridTablesFactory.cs
- RecognizedWordUnit.cs
- RemotingAttributes.cs
- TypeUtil.cs
- PaginationProgressEventArgs.cs
- AliasedSlot.cs
- DictionaryBase.cs
- TypeHelpers.cs
- BamlLocalizationDictionary.cs
- ProjectionPruner.cs
- SQLDoubleStorage.cs
- DetailsView.cs
- XsdDateTime.cs
- QilFactory.cs
- Scheduler.cs
- AsyncOperationContext.cs
- WebBrowserUriTypeConverter.cs
- XmlAttributeProperties.cs
- ListViewGroup.cs
- AuthenticationManager.cs
- ListDictionary.cs
- DriveInfo.cs
- EntityCodeGenerator.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- SimpleFileLog.cs
- RawStylusInputReport.cs
- MsmqChannelFactoryBase.cs
- _PooledStream.cs
- nulltextcontainer.cs