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
- SqlParameter.cs
- SchemaMapping.cs
- DelegateOutArgument.cs
- AssemblyAssociatedContentFileAttribute.cs
- CollectionBase.cs
- PropertyFilter.cs
- ListControlBoundActionList.cs
- CalloutQueueItem.cs
- DoubleLink.cs
- StyleBamlTreeBuilder.cs
- PersonalizationProvider.cs
- ReferenceEqualityComparer.cs
- Item.cs
- SerializableAttribute.cs
- WindowsFormsSynchronizationContext.cs
- ErrorWrapper.cs
- Transform.cs
- CorrelationManager.cs
- AQNBuilder.cs
- WebPartUtil.cs
- PointLight.cs
- UIElementIsland.cs
- MinimizableAttributeTypeConverter.cs
- BackgroundWorker.cs
- NoClickablePointException.cs
- ClaimComparer.cs
- ReflectionUtil.cs
- HttpValueCollection.cs
- ListSourceHelper.cs
- UmAlQuraCalendar.cs
- ZipIORawDataFileBlock.cs
- CharUnicodeInfo.cs
- ConfigurationSection.cs
- CellLabel.cs
- AsymmetricKeyExchangeFormatter.cs
- FontStretchConverter.cs
- BaseValidatorDesigner.cs
- activationcontext.cs
- KeyPressEvent.cs
- ProtocolViolationException.cs
- Thumb.cs
- MemberAccessException.cs
- ElementsClipboardData.cs
- PreProcessInputEventArgs.cs
- ArrangedElementCollection.cs
- UIntPtr.cs
- InputLanguageProfileNotifySink.cs
- SetMemberBinder.cs
- SecurityTokenReferenceStyle.cs
- EntitySetBaseCollection.cs
- UnsafeNativeMethodsTablet.cs
- Object.cs
- XDeferredAxisSource.cs
- Bold.cs
- ListBindingConverter.cs
- TypedDataSetSchemaImporterExtension.cs
- PasswordDeriveBytes.cs
- ToolStripStatusLabel.cs
- KnownTypesHelper.cs
- FormatVersion.cs
- BaseParser.cs
- ProcessRequestArgs.cs
- SqlProcedureAttribute.cs
- DragStartedEventArgs.cs
- IisHelper.cs
- CodeConstructor.cs
- GridEntry.cs
- HighlightVisual.cs
- GPPOINT.cs
- HealthMonitoringSection.cs
- ReadWriteSpinLock.cs
- PropertyOverridesDialog.cs
- ResourceReferenceExpression.cs
- SingleSelectRootGridEntry.cs
- ThreadExceptionEvent.cs
- HttpModuleCollection.cs
- ReadOnlyDataSourceView.cs
- StateRuntime.cs
- PanelStyle.cs
- XmlBinaryReader.cs
- MultiView.cs
- Ref.cs
- PeerCollaborationPermission.cs
- FieldBuilder.cs
- SafeMILHandle.cs
- AliasExpr.cs
- RequestQueryParser.cs
- ComplexObject.cs
- Activity.cs
- VarInfo.cs
- InvokeFunc.cs
- ToolbarAUtomationPeer.cs
- MenuCommand.cs
- HostingEnvironmentException.cs
- SourceInterpreter.cs
- DotNetATv1WindowsLogEntryDeserializer.cs
- HealthMonitoringSection.cs
- DecimalKeyFrameCollection.cs
- XmlILCommand.cs
- HttpNamespaceReservationInstallComponent.cs