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
- BrushConverter.cs
- MimeImporter.cs
- SegmentInfo.cs
- GroupItem.cs
- TextSelectionHelper.cs
- EdmToObjectNamespaceMap.cs
- ResXResourceSet.cs
- ReflectEventDescriptor.cs
- XmlSchemaParticle.cs
- XmlNodeList.cs
- ParsedAttributeCollection.cs
- SourceInterpreter.cs
- externdll.cs
- DesignerDeviceConfig.cs
- ReferentialConstraintRoleElement.cs
- XsdBuilder.cs
- BaseWebProxyFinder.cs
- RSAPKCS1SignatureFormatter.cs
- NativeMethods.cs
- WebPartConnectVerb.cs
- PathFigure.cs
- PreDigestedSignedInfo.cs
- EntitySetRetriever.cs
- FillBehavior.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- DeferredElementTreeState.cs
- DataControlField.cs
- TypeGeneratedEventArgs.cs
- GacUtil.cs
- IsolatedStorageException.cs
- PersistenceTypeAttribute.cs
- SQLSingleStorage.cs
- SafeProcessHandle.cs
- SuppressMessageAttribute.cs
- XsdDataContractImporter.cs
- ControlPaint.cs
- DocumentPageViewAutomationPeer.cs
- XmlBinaryWriter.cs
- RequestCacheValidator.cs
- ProofTokenCryptoHandle.cs
- DataGridViewColumnTypeEditor.cs
- ExceptionValidationRule.cs
- SmiContext.cs
- EdmType.cs
- StylusPointPropertyId.cs
- ObjectDataSource.cs
- IgnoreDeviceFilterElementCollection.cs
- ConstraintEnumerator.cs
- GlyphTypeface.cs
- CompilerCollection.cs
- CompareValidator.cs
- NumberAction.cs
- ExpressionBuilder.cs
- isolationinterop.cs
- AgileSafeNativeMemoryHandle.cs
- AccessViolationException.cs
- BrowserCapabilitiesFactory.cs
- SrgsToken.cs
- CompositeActivityCodeGenerator.cs
- QuerySettings.cs
- LeaseManager.cs
- WindowsFormsEditorServiceHelper.cs
- COM2PropertyDescriptor.cs
- InvalidPropValue.cs
- WebCategoryAttribute.cs
- CompleteWizardStep.cs
- CodeMethodInvokeExpression.cs
- EntityParameterCollection.cs
- LockRecursionException.cs
- DataGridColumn.cs
- BlockingCollection.cs
- UnauthorizedAccessException.cs
- XmlSchemaExporter.cs
- BuildProvider.cs
- DefaultValidator.cs
- SizeLimitedCache.cs
- JsonWriter.cs
- DesignerActionHeaderItem.cs
- MessageBox.cs
- XmlQuerySequence.cs
- coordinatorfactory.cs
- TableAdapterManagerNameHandler.cs
- InputElement.cs
- JsonUriDataContract.cs
- AnimationStorage.cs
- peernodestatemanager.cs
- FieldAccessException.cs
- TouchEventArgs.cs
- BamlLocalizabilityResolver.cs
- JpegBitmapDecoder.cs
- RuntimeArgumentHandle.cs
- ForwardPositionQuery.cs
- LabelLiteral.cs
- BaseCodeDomTreeGenerator.cs
- ParallelTimeline.cs
- WebOperationContext.cs
- IPGlobalProperties.cs
- EntityConnectionStringBuilder.cs
- EventArgs.cs
- PngBitmapEncoder.cs