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
- DbDataSourceEnumerator.cs
- Site.cs
- RadioButtonList.cs
- DocumentOrderQuery.cs
- XmlSchemaAppInfo.cs
- SqlDelegatedTransaction.cs
- ImpersonateTokenRef.cs
- GenericNameHandler.cs
- EntryWrittenEventArgs.cs
- HttpTransportManager.cs
- CalendarDesigner.cs
- OleDbStruct.cs
- RectangleF.cs
- IisHelper.cs
- QueryAccessibilityHelpEvent.cs
- BidOverLoads.cs
- ButtonRenderer.cs
- GeneralTransform3DTo2DTo3D.cs
- RenderingEventArgs.cs
- ManagedWndProcTracker.cs
- DataGridViewBand.cs
- AttributeAction.cs
- NotCondition.cs
- ErrorView.xaml.cs
- EdmPropertyAttribute.cs
- ManifestSignatureInformation.cs
- BezierSegment.cs
- XmlElementAttributes.cs
- TcpSocketManager.cs
- DocumentPageTextView.cs
- PropertyKey.cs
- ElementNotAvailableException.cs
- Visitors.cs
- DataControlField.cs
- XPathExpr.cs
- QueryRewriter.cs
- ImageBrush.cs
- Exceptions.cs
- PersonalizationStateInfo.cs
- SimpleApplicationHost.cs
- Logging.cs
- HttpCookiesSection.cs
- SerializationHelper.cs
- WebDisplayNameAttribute.cs
- UnmanagedMemoryStreamWrapper.cs
- CodeObjectCreateExpression.cs
- EncryptedData.cs
- VideoDrawing.cs
- ConfigurationManagerHelper.cs
- WindowsSolidBrush.cs
- Track.cs
- GenericParameterDataContract.cs
- Decimal.cs
- FastPropertyAccessor.cs
- ISO2022Encoding.cs
- EventToken.cs
- AgileSafeNativeMemoryHandle.cs
- ThousandthOfEmRealPoints.cs
- TailPinnedEventArgs.cs
- DrawingBrush.cs
- SymLanguageType.cs
- StorageEndPropertyMapping.cs
- FamilyMap.cs
- ArraySubsetEnumerator.cs
- DecoderReplacementFallback.cs
- UInt16.cs
- PackageProperties.cs
- WebPageTraceListener.cs
- X509SecurityToken.cs
- SafeEventHandle.cs
- ArrangedElement.cs
- SiteMapDataSourceView.cs
- BuildDependencySet.cs
- InputReport.cs
- SystemSounds.cs
- CapabilitiesState.cs
- CharUnicodeInfo.cs
- TreeViewTemplateSelector.cs
- VersionedStreamOwner.cs
- TextBoxDesigner.cs
- Rules.cs
- webeventbuffer.cs
- XamlBrushSerializer.cs
- HttpRequestCacheValidator.cs
- DataList.cs
- MethodRental.cs
- Unit.cs
- CollectionViewGroupRoot.cs
- EventProviderBase.cs
- _NativeSSPI.cs
- OracleConnection.cs
- NestedContainer.cs
- SqlDataSourceWizardForm.cs
- LinqDataView.cs
- DataViewSetting.cs
- WebPartsPersonalization.cs
- Normalizer.cs
- ObjectAssociationEndMapping.cs
- MediaScriptCommandRoutedEventArgs.cs
- DurableErrorHandler.cs