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
- ModelTreeEnumerator.cs
- XmlBinaryReader.cs
- RepeaterItemCollection.cs
- _AuthenticationState.cs
- XamlPoint3DCollectionSerializer.cs
- EditorPartChrome.cs
- Brush.cs
- XmlSchemaNotation.cs
- PageBuildProvider.cs
- SelfIssuedSamlTokenFactory.cs
- DoubleCollection.cs
- DataGridViewControlCollection.cs
- CatalogZoneBase.cs
- Util.cs
- ListBoxItem.cs
- WeakRefEnumerator.cs
- MimePart.cs
- CFStream.cs
- TimeIntervalCollection.cs
- RuleInfoComparer.cs
- PartialCachingControl.cs
- MobilePage.cs
- DesignerObject.cs
- ValidatedControlConverter.cs
- DbDataSourceEnumerator.cs
- XmlSchemaGroup.cs
- FileReservationCollection.cs
- CompoundFileStreamReference.cs
- WebConvert.cs
- CursorConverter.cs
- DbParameterCollection.cs
- FontFaceLayoutInfo.cs
- FormClosedEvent.cs
- MenuEventArgs.cs
- peernodeimplementation.cs
- VisualStyleElement.cs
- WhitespaceSignificantCollectionAttribute.cs
- ObjectAnimationBase.cs
- ParameterReplacerVisitor.cs
- NonSerializedAttribute.cs
- SafeRightsManagementPubHandle.cs
- WebServicesInteroperability.cs
- PauseStoryboard.cs
- RefreshEventArgs.cs
- RepeatButtonAutomationPeer.cs
- RuntimeResourceSet.cs
- NavigateUrlConverter.cs
- XmlTypeAttribute.cs
- TitleStyle.cs
- diagnosticsswitches.cs
- ClientSession.cs
- SignatureHelper.cs
- UrlPropertyAttribute.cs
- StylusShape.cs
- DesignerPainter.cs
- DescendentsWalker.cs
- KoreanLunisolarCalendar.cs
- SchemaLookupTable.cs
- ServiceModelDictionary.cs
- CodeDomConfigurationHandler.cs
- ComboBox.cs
- TextFormatterContext.cs
- ItemType.cs
- BCLDebug.cs
- TrackingProfileCache.cs
- GPRECT.cs
- CodeAttributeArgumentCollection.cs
- EntityContainerRelationshipSetEnd.cs
- HashHelper.cs
- ObjRef.cs
- MetadataUtil.cs
- SHA512.cs
- CharConverter.cs
- FileVersionInfo.cs
- RelationshipManager.cs
- x509utils.cs
- DynamicObjectAccessor.cs
- PeerApplicationLaunchInfo.cs
- Wizard.cs
- SerializationInfo.cs
- RequiredFieldValidator.cs
- RC2CryptoServiceProvider.cs
- AuthorizationContext.cs
- Typeface.cs
- CookieProtection.cs
- MethodBody.cs
- CompilerGeneratedAttribute.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- CorePropertiesFilter.cs
- SqlParameterizer.cs
- dsa.cs
- ExtensionsSection.cs
- XsltArgumentList.cs
- ResXBuildProvider.cs
- XmlTypeAttribute.cs
- CommandConverter.cs
- InArgument.cs
- SQLBytesStorage.cs
- ConfigXmlWhitespace.cs
- SoapReflector.cs