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
- InvokeGenerator.cs
- OleDbInfoMessageEvent.cs
- NotSupportedException.cs
- LoggedException.cs
- CodeRemoveEventStatement.cs
- ToolboxItemAttribute.cs
- ObjectItemCollection.cs
- XmlCountingReader.cs
- ExtendedPropertyDescriptor.cs
- NaturalLanguageHyphenator.cs
- TripleDES.cs
- IgnoreFlushAndCloseStream.cs
- QueryOperationResponseOfT.cs
- Internal.cs
- ConcatQueryOperator.cs
- TextSelectionHelper.cs
- ListMarkerLine.cs
- _ChunkParse.cs
- Exceptions.cs
- XmlNavigatorFilter.cs
- StyleSheetDesigner.cs
- TargetFrameworkUtil.cs
- VisualBasicSettingsConverter.cs
- TextDpi.cs
- TableRowCollection.cs
- WebPartExportVerb.cs
- DelegatingTypeDescriptionProvider.cs
- ArrayTypeMismatchException.cs
- TextRangeEdit.cs
- ItemCheckEvent.cs
- DirtyTextRange.cs
- RowCache.cs
- ReadWriteControlDesigner.cs
- PathGeometry.cs
- COM2FontConverter.cs
- IdentityHolder.cs
- GenericFlowSwitchHelper.cs
- ResumeStoryboard.cs
- WindowShowOrOpenTracker.cs
- SystemTcpStatistics.cs
- MultiSelectRootGridEntry.cs
- ForceCopyBuildProvider.cs
- SiteMapNodeItem.cs
- MD5.cs
- AppDomainManager.cs
- Base64Stream.cs
- Tablet.cs
- DataGridViewCellStyleChangedEventArgs.cs
- ResourcePool.cs
- Empty.cs
- DocumentApplication.cs
- DataViewListener.cs
- InputQueueChannel.cs
- CellTreeNodeVisitors.cs
- ClassHandlersStore.cs
- ConstraintEnumerator.cs
- ModifiableIteratorCollection.cs
- ConstraintConverter.cs
- StringInfo.cs
- SignedXml.cs
- WebContentFormatHelper.cs
- LogStore.cs
- SynchronizingStream.cs
- RoleExceptions.cs
- MarkupCompilePass2.cs
- WaitHandle.cs
- DetailsViewUpdateEventArgs.cs
- ValidatingReaderNodeData.cs
- CodeIdentifiers.cs
- DataObject.cs
- Triplet.cs
- AuthStoreRoleProvider.cs
- Durable.cs
- XpsS0ValidatingLoader.cs
- XmlSchemaAny.cs
- DataGridViewButtonColumn.cs
- ColorAnimationUsingKeyFrames.cs
- DBSchemaTable.cs
- ExpandedWrapper.cs
- DoubleCollectionConverter.cs
- ManipulationPivot.cs
- CallbackValidatorAttribute.cs
- DataGridViewCheckBoxCell.cs
- DataFormat.cs
- BindingValueChangedEventArgs.cs
- PowerModeChangedEventArgs.cs
- DynamicRendererThreadManager.cs
- ClientRoleProvider.cs
- OneToOneMappingSerializer.cs
- InteropDesigner.xaml.cs
- SelectorItemAutomationPeer.cs
- NotifyParentPropertyAttribute.cs
- Column.cs
- FormsAuthenticationUserCollection.cs
- SmtpFailedRecipientException.cs
- AggregateNode.cs
- RenderData.cs
- CompilerErrorCollection.cs
- RangeValidator.cs
- Geometry.cs