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
- ColorContextHelper.cs
- ConcurrentQueue.cs
- XslNumber.cs
- Formatter.cs
- SettingsSavedEventArgs.cs
- MapPathBasedVirtualPathProvider.cs
- Misc.cs
- DesignerOptionService.cs
- ToolStripItemCollection.cs
- TargetParameterCountException.cs
- LoadedOrUnloadedOperation.cs
- DoubleLink.cs
- ReadOnlyNameValueCollection.cs
- AssemblyBuilder.cs
- SafeNativeMethods.cs
- EncoderFallback.cs
- SecurityDocument.cs
- WebControlToolBoxItem.cs
- DbBuffer.cs
- XmlParser.cs
- PageRanges.cs
- Scene3D.cs
- FrameworkElementFactoryMarkupObject.cs
- DBConnection.cs
- TraceRecord.cs
- ClientFormsAuthenticationCredentials.cs
- Attribute.cs
- DataGridViewCellLinkedList.cs
- BindingExpression.cs
- RegexCode.cs
- WindowsAuthenticationModule.cs
- CombinedGeometry.cs
- Pens.cs
- AsyncResult.cs
- ThreadSafeList.cs
- TrackingValidationObjectDictionary.cs
- DataPagerFieldCollection.cs
- InternalSafeNativeMethods.cs
- SqlEnums.cs
- NotificationContext.cs
- DictionaryManager.cs
- SafeEventHandle.cs
- FormParameter.cs
- Pool.cs
- CodeEventReferenceExpression.cs
- XsltArgumentList.cs
- XhtmlBasicPageAdapter.cs
- ChangeProcessor.cs
- EntityUtil.cs
- FieldBuilder.cs
- DesignerTransactionCloseEvent.cs
- ServiceModelSectionGroup.cs
- ControlCommandSet.cs
- TriggerCollection.cs
- EntityDataSourceMemberPath.cs
- RectangleGeometry.cs
- SpeechUI.cs
- SecuritySessionSecurityTokenProvider.cs
- DescriptionCreator.cs
- TypeForwardedToAttribute.cs
- GlobalItem.cs
- SafeSecurityHandles.cs
- WorkflowDispatchContext.cs
- ArgIterator.cs
- RuntimeEnvironment.cs
- QuotedPairReader.cs
- shaperfactoryquerycacheentry.cs
- SingleQueryOperator.cs
- _CacheStreams.cs
- Dictionary.cs
- ProgressBarAutomationPeer.cs
- RightsManagementUser.cs
- UIEndRequest.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- CompressEmulationStream.cs
- TrackBarDesigner.cs
- BezierSegment.cs
- EntryIndex.cs
- SelfIssuedAuthAsymmetricKey.cs
- Clipboard.cs
- LoadMessageLogger.cs
- DesignerAttribute.cs
- PropertyNames.cs
- ToolStripRenderer.cs
- Graph.cs
- XmlCharCheckingWriter.cs
- VisemeEventArgs.cs
- EncoderNLS.cs
- HebrewCalendar.cs
- CustomAssemblyResolver.cs
- IPGlobalProperties.cs
- SelectionWordBreaker.cs
- ObfuscationAttribute.cs
- WebPartCollection.cs
- PieceDirectory.cs
- StylusDevice.cs
- BamlLocalizationDictionary.cs
- SqlGatherConsumedAliases.cs
- HandleCollector.cs
- FillErrorEventArgs.cs