Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / clr / src / BCL / System / Runtime / CompilerServices / AssemblySettingAttributes.cs / 1 / 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
- Wizard.cs
- SchemaCompiler.cs
- Comparer.cs
- SelectionProcessor.cs
- TextLine.cs
- KeyPullup.cs
- Menu.cs
- TextParagraph.cs
- OleDbErrorCollection.cs
- WebProxyScriptElement.cs
- CodeDirectiveCollection.cs
- CalendarModeChangedEventArgs.cs
- AQNBuilder.cs
- NaturalLanguageHyphenator.cs
- KeyInterop.cs
- AnimationException.cs
- DynamicDocumentPaginator.cs
- DoubleAnimationUsingPath.cs
- Vector3DIndependentAnimationStorage.cs
- MessageHeaderT.cs
- PlacementWorkspace.cs
- ResourcePart.cs
- WeakHashtable.cs
- WindowsFormsSynchronizationContext.cs
- DatagramAdapter.cs
- SimpleHandlerBuildProvider.cs
- FixedSchema.cs
- DispatcherOperation.cs
- ContentPathSegment.cs
- NGCPageContentCollectionSerializerAsync.cs
- WindowsToolbarAsMenu.cs
- SystemUnicastIPAddressInformation.cs
- Drawing.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- Domain.cs
- CaseInsensitiveHashCodeProvider.cs
- Transform.cs
- TableLayoutSettings.cs
- Privilege.cs
- FixedSchema.cs
- Frame.cs
- ActivationServices.cs
- XmlSchemaRedefine.cs
- ThreadAbortException.cs
- TypeLibConverter.cs
- DBSchemaTable.cs
- LoginName.cs
- DefaultProxySection.cs
- DataGridViewSortCompareEventArgs.cs
- BufferAllocator.cs
- KeyedQueue.cs
- ConfigXmlDocument.cs
- DataTemplate.cs
- HwndTarget.cs
- ReceiveParametersContent.cs
- WebPartConnectionsEventArgs.cs
- StylusButtonCollection.cs
- DataGridViewColumnHeaderCell.cs
- ExecutedRoutedEventArgs.cs
- AppDomainFactory.cs
- TableLayout.cs
- Internal.cs
- ContentPlaceHolder.cs
- WindowsFormsLinkLabel.cs
- Int16AnimationUsingKeyFrames.cs
- CroppedBitmap.cs
- NamedPipeChannelListener.cs
- OleAutBinder.cs
- Blend.cs
- Pen.cs
- SqlReferenceCollection.cs
- XamlDesignerSerializationManager.cs
- UnicastIPAddressInformationCollection.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- VisualTreeHelper.cs
- DependencyStoreSurrogate.cs
- File.cs
- TargetControlTypeAttribute.cs
- AutoGeneratedField.cs
- PartialList.cs
- DtrList.cs
- Wrapper.cs
- SignedXml.cs
- EditorPart.cs
- BindingNavigatorDesigner.cs
- WebControl.cs
- SplashScreenNativeMethods.cs
- AppLevelCompilationSectionCache.cs
- IFlowDocumentViewer.cs
- SqlVersion.cs
- HostedTcpTransportManager.cs
- ErrorTableItemStyle.cs
- Int64Converter.cs
- ConfigurationValue.cs
- XmlCompatibilityReader.cs
- OperationAbortedException.cs
- DataServiceQueryOfT.cs
- ScriptManager.cs
- ImageListUtils.cs
- HyperLinkStyle.cs