Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / clr / src / BCL / System / Runtime / CompilerServices / AssemblySettingAttributes.cs / 1 / 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
- TreeNodeStyle.cs
- SystemInformation.cs
- ExtendedPropertyCollection.cs
- StringInfo.cs
- RelatedImageListAttribute.cs
- AttributeCollection.cs
- SettingsPropertyIsReadOnlyException.cs
- CompiledQueryCacheKey.cs
- ToolStripDropDownClosedEventArgs.cs
- MasterPageParser.cs
- Table.cs
- XmlAttributeProperties.cs
- SByteStorage.cs
- CallSiteBinder.cs
- SqlFileStream.cs
- _TLSstream.cs
- AccessDataSourceView.cs
- XamlPoint3DCollectionSerializer.cs
- PrimitiveXmlSerializers.cs
- LineBreakRecord.cs
- DirectoryObjectSecurity.cs
- TextSelectionHelper.cs
- UserNamePasswordClientCredential.cs
- HtmlValidationSummaryAdapter.cs
- CodeGenerator.cs
- TextView.cs
- OrderedHashRepartitionStream.cs
- ClientOperation.cs
- PointLight.cs
- RawStylusActions.cs
- WebPartConnectionsConfigureVerb.cs
- LinqDataSourceContextData.cs
- SelectionEditor.cs
- InputBinding.cs
- ComplexType.cs
- LoginViewDesigner.cs
- ObjectDataProvider.cs
- ProvidersHelper.cs
- JsonServiceDocumentSerializer.cs
- translator.cs
- StylusPointCollection.cs
- _ListenerResponseStream.cs
- EventLogPermission.cs
- StructuralObject.cs
- FormsAuthenticationModule.cs
- CharUnicodeInfo.cs
- DbDataReader.cs
- SudsCommon.cs
- FileUpload.cs
- XNodeValidator.cs
- WebServiceMethodData.cs
- HtmlInputSubmit.cs
- ApplicationFileParser.cs
- _NegoStream.cs
- TableHeaderCell.cs
- DocumentViewerHelper.cs
- MetafileHeader.cs
- FileLoadException.cs
- SocketException.cs
- ClientEventManager.cs
- TypeBuilder.cs
- SignedPkcs7.cs
- PersonalizationStateQuery.cs
- PrintingPermission.cs
- FamilyTypefaceCollection.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- Enum.cs
- StringDictionaryEditor.cs
- CustomErrorsSection.cs
- RegexCaptureCollection.cs
- ProcessRequestArgs.cs
- DebugView.cs
- ScrollChrome.cs
- DbProviderConfigurationHandler.cs
- FixedNode.cs
- ReadContentAsBinaryHelper.cs
- Image.cs
- ApplicationActivator.cs
- Process.cs
- CodeIdentifier.cs
- OdbcHandle.cs
- Control.cs
- ChangePassword.cs
- UrlMappingCollection.cs
- ProxyHelper.cs
- Permission.cs
- XmlDomTextWriter.cs
- CodeThrowExceptionStatement.cs
- DesignerDataConnection.cs
- EventLogPermissionAttribute.cs
- CharAnimationBase.cs
- CodeConditionStatement.cs
- CodeThrowExceptionStatement.cs
- OleDbInfoMessageEvent.cs
- NameValuePermission.cs
- BasicDesignerLoader.cs
- DropSource.cs
- TransactionFlowElement.cs
- XPathDocumentNavigator.cs
- storepermissionattribute.cs