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
- SystemInformation.cs
- XamlFigureLengthSerializer.cs
- SecurityPolicyVersion.cs
- VectorConverter.cs
- GenericNameHandler.cs
- InheritanceRules.cs
- VisualStyleInformation.cs
- FrameworkElementFactory.cs
- LinkUtilities.cs
- XPathDocument.cs
- SiteMapNodeItem.cs
- DecoderReplacementFallback.cs
- WebPartRestoreVerb.cs
- SpanIndex.cs
- Rotation3DAnimation.cs
- TextSerializer.cs
- ReflectionPermission.cs
- BasicCellRelation.cs
- PathNode.cs
- BaseTemplateBuildProvider.cs
- HideDisabledControlAdapter.cs
- SqlConnectionString.cs
- FilterEventArgs.cs
- Atom10FormatterFactory.cs
- Barrier.cs
- RankException.cs
- ValueSerializerAttribute.cs
- CompositeFontParser.cs
- Image.cs
- ResourcePermissionBaseEntry.cs
- UnitySerializationHolder.cs
- GlobalizationAssembly.cs
- ProcessModule.cs
- ConfigXmlWhitespace.cs
- ActivityLocationReferenceEnvironment.cs
- ArrayEditor.cs
- NavigationEventArgs.cs
- MatrixValueSerializer.cs
- PassportAuthenticationEventArgs.cs
- ContentPlaceHolder.cs
- TextBoxLine.cs
- CodeSnippetStatement.cs
- SystemResourceKey.cs
- CacheForPrimitiveTypes.cs
- AliasedSlot.cs
- MediaEntryAttribute.cs
- EventToken.cs
- XmlTypeMapping.cs
- ResourcePermissionBaseEntry.cs
- ScriptHandlerFactory.cs
- FixedDocumentPaginator.cs
- VisualTarget.cs
- HttpListenerContext.cs
- ApplicationSecurityInfo.cs
- WebAdminConfigurationHelper.cs
- Wildcard.cs
- CloseCryptoHandleRequest.cs
- log.cs
- SafeRightsManagementHandle.cs
- Mouse.cs
- OverflowException.cs
- TreeView.cs
- Signature.cs
- HotSpotCollection.cs
- TextBoxBase.cs
- TimerEventSubscription.cs
- ToolStripDropDownButton.cs
- NativeMethodsCLR.cs
- DataGridViewCellEventArgs.cs
- DistributedTransactionPermission.cs
- StateChangeEvent.cs
- LexicalChunk.cs
- MexServiceChannelBuilder.cs
- ParameterToken.cs
- PolygonHotSpot.cs
- RegistrySecurity.cs
- ConnectionManagementElementCollection.cs
- DockPatternIdentifiers.cs
- AppendHelper.cs
- RegexEditorDialog.cs
- SystemInfo.cs
- MailMessage.cs
- CallContext.cs
- Point4DValueSerializer.cs
- WebRequestModuleElementCollection.cs
- DecoderReplacementFallback.cs
- PatternMatcher.cs
- CultureInfoConverter.cs
- InternalSafeNativeMethods.cs
- Menu.cs
- DBParameter.cs
- Transform3DCollection.cs
- XPathExpr.cs
- BypassElementCollection.cs
- InternalDispatchObject.cs
- QuaternionValueSerializer.cs
- ProfessionalColors.cs
- Convert.cs
- RelationshipEnd.cs
- Encoder.cs