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
- ServiceOperation.cs
- PocoEntityKeyStrategy.cs
- ReferencedType.cs
- WebPartMovingEventArgs.cs
- SystemWebCachingSectionGroup.cs
- Misc.cs
- SqlDataSourceSelectingEventArgs.cs
- XmlIterators.cs
- OLEDB_Util.cs
- NonPrimarySelectionGlyph.cs
- DocumentProperties.cs
- XmlSchemaAppInfo.cs
- Normalization.cs
- SHA1Cng.cs
- _LocalDataStoreMgr.cs
- TreeNodeEventArgs.cs
- FormsAuthenticationUser.cs
- ModelPerspective.cs
- HttpListenerContext.cs
- HtmlForm.cs
- MulticastNotSupportedException.cs
- KeyValuePairs.cs
- HostingPreferredMapPath.cs
- CompositeControl.cs
- ParallelTimeline.cs
- FormsAuthentication.cs
- UidPropertyAttribute.cs
- TypeDescriptor.cs
- D3DImage.cs
- DriveNotFoundException.cs
- Span.cs
- SynchronizationLockException.cs
- LayoutEvent.cs
- Psha1DerivedKeyGenerator.cs
- VirtualizingStackPanel.cs
- PerfCounters.cs
- ApplicationManager.cs
- DbConnectionClosed.cs
- NativeMethodsCLR.cs
- TimeSpanSecondsConverter.cs
- SqlFactory.cs
- PopupEventArgs.cs
- HttpResponseWrapper.cs
- IsolatedStorageFilePermission.cs
- Geometry.cs
- DataSetUtil.cs
- InternalConfigRoot.cs
- DataRowComparer.cs
- PageStatePersister.cs
- EventNotify.cs
- AmbientLight.cs
- SortedDictionary.cs
- XmlSchemaDatatype.cs
- StringUtil.cs
- Stroke2.cs
- BaseTemplateBuildProvider.cs
- ListMarkerSourceInfo.cs
- ProfileSection.cs
- smtpconnection.cs
- XmlCharType.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- WebPartChrome.cs
- XmlDocumentFragment.cs
- AddressingProperty.cs
- DataObjectAttribute.cs
- DispatcherFrame.cs
- InfocardClientCredentials.cs
- HMACSHA512.cs
- ping.cs
- PtsContext.cs
- CLRBindingWorker.cs
- Condition.cs
- input.cs
- ClientOperationFormatterProvider.cs
- TypeSystem.cs
- Label.cs
- SqlDataSourceCommandParser.cs
- StatusBarAutomationPeer.cs
- SimpleType.cs
- UnrecognizedPolicyAssertionElement.cs
- CodeIndexerExpression.cs
- ProtectedProviderSettings.cs
- SqlInternalConnection.cs
- GridViewCellAutomationPeer.cs
- WindowsUpDown.cs
- SafeLocalMemHandle.cs
- Transform.cs
- RTLAwareMessageBox.cs
- DrawingGroup.cs
- AutoResizedEvent.cs
- Point4D.cs
- DocumentApplicationJournalEntry.cs
- Message.cs
- BamlResourceSerializer.cs
- AssociationType.cs
- QuaternionKeyFrameCollection.cs
- PartBasedPackageProperties.cs
- ButtonBaseAdapter.cs
- TypeBuilder.cs
- DPAPIProtectedConfigurationProvider.cs