Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SecurityPermission.cs
- HotSpot.cs
- SimpleRecyclingCache.cs
- ResXResourceSet.cs
- Encoder.cs
- ConnectionStringsSection.cs
- TextBlock.cs
- LambdaExpression.cs
- ConfigXmlReader.cs
- AbstractSvcMapFileLoader.cs
- ProcessHostServerConfig.cs
- ByteStorage.cs
- InkCanvasSelectionAdorner.cs
- WaitHandle.cs
- MyContact.cs
- TableCell.cs
- SqlDataSourceCommandEventArgs.cs
- HttpRequestTraceRecord.cs
- ImplicitInputBrush.cs
- EntityWithChangeTrackerStrategy.cs
- ClientRolePrincipal.cs
- TypeUsageBuilder.cs
- RenderingEventArgs.cs
- SchemaMapping.cs
- ReplyChannelBinder.cs
- ResolvedKeyFrameEntry.cs
- KnownColorTable.cs
- TextEditor.cs
- Configuration.cs
- COM2IProvidePropertyBuilderHandler.cs
- ObjectStateManagerMetadata.cs
- ConfigurationLocation.cs
- UnsafeNativeMethods.cs
- BitmapCacheBrush.cs
- DoubleLinkList.cs
- controlskin.cs
- SqlGatherConsumedAliases.cs
- QueryContext.cs
- TextComposition.cs
- SqlNamer.cs
- CodeGenerator.cs
- RightsManagementEncryptionTransform.cs
- NullableBoolConverter.cs
- Win32.cs
- DirtyTextRange.cs
- AssemblyCacheEntry.cs
- CodeDomComponentSerializationService.cs
- Quaternion.cs
- Stack.cs
- JoinSymbol.cs
- ControlBuilderAttribute.cs
- NavigationProgressEventArgs.cs
- SqlExpander.cs
- PageThemeBuildProvider.cs
- ProfileInfo.cs
- DisplayInformation.cs
- SettingsBase.cs
- ImageClickEventArgs.cs
- TypeInitializationException.cs
- PrivilegedConfigurationManager.cs
- Recipient.cs
- QuinticEase.cs
- WSTrust.cs
- StringAttributeCollection.cs
- EntityCommand.cs
- Vector3DCollection.cs
- ChildTable.cs
- ServiceBusyException.cs
- ConditionalWeakTable.cs
- UpDownBase.cs
- RootBuilder.cs
- XmlnsCache.cs
- TextTreeInsertUndoUnit.cs
- DataKey.cs
- SqlUdtInfo.cs
- RC2.cs
- TableProviderWrapper.cs
- ObjectStateManagerMetadata.cs
- BufferedGraphics.cs
- GenericEnumerator.cs
- sitestring.cs
- SqlConnectionPoolGroupProviderInfo.cs
- ADConnectionHelper.cs
- ReflectPropertyDescriptor.cs
- SymLanguageVendor.cs
- TakeOrSkipQueryOperator.cs
- ToolStripMenuItemDesigner.cs
- SendMailErrorEventArgs.cs
- RightNameExpirationInfoPair.cs
- Ref.cs
- FontSizeConverter.cs
- BufferAllocator.cs
- HttpResponseHeader.cs
- IMembershipProvider.cs
- VarInfo.cs
- DataControlButton.cs
- ControlBuilderAttribute.cs
- PropertyValueChangedEvent.cs
- DependencyProperty.cs
- ReferentialConstraintRoleElement.cs