Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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 } /* NGenAttribute is not supported in Whidbey [Serializable, AttributeUsage(AttributeTargets.Assembly)] public sealed class NGenAttribute : Attribute { private NGenHint hint; public NGenAttribute ( NGenHint hintArgument ) { hint = hintArgument; } public NGenHint NGenHint { get { return hint; } } } */ [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; } } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PingReply.cs
- RtfToXamlReader.cs
- SerializationAttributes.cs
- CommonDialog.cs
- ManagedCodeMarkers.cs
- SchemaTableColumn.cs
- Win32MouseDevice.cs
- GridViewRow.cs
- TransformerInfoCollection.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- AsymmetricSignatureFormatter.cs
- GatewayDefinition.cs
- _HeaderInfoTable.cs
- DataGridTextBox.cs
- AuthorizationRule.cs
- altserialization.cs
- AdministrationHelpers.cs
- PerformanceCounterManager.cs
- TextShapeableCharacters.cs
- JsonDeserializer.cs
- ListViewInsertionMark.cs
- DirectionalLight.cs
- MLangCodePageEncoding.cs
- Drawing.cs
- SoapConverter.cs
- PropertyToken.cs
- XmlSchemaFacet.cs
- Int32CollectionConverter.cs
- KeyBinding.cs
- PathParser.cs
- TemplatedMailWebEventProvider.cs
- IListConverters.cs
- TaskHelper.cs
- XPathSelectionIterator.cs
- FullTextBreakpoint.cs
- NumberFormatInfo.cs
- CodeDirectionExpression.cs
- Model3D.cs
- StatusStrip.cs
- UserPreferenceChangingEventArgs.cs
- IdentityHolder.cs
- DoubleCollectionValueSerializer.cs
- ObjectListDataBindEventArgs.cs
- DrawingGroupDrawingContext.cs
- SecureStringHasher.cs
- DBAsyncResult.cs
- MissingSatelliteAssemblyException.cs
- CustomErrorCollection.cs
- DebugHandleTracker.cs
- HttpPostedFileWrapper.cs
- TreeNodeStyle.cs
- HostProtectionPermission.cs
- ApplicationFileParser.cs
- WhitespaceRule.cs
- HitTestDrawingContextWalker.cs
- KnowledgeBase.cs
- GridSplitterAutomationPeer.cs
- WorkflowViewStateService.cs
- ComNativeDescriptor.cs
- GeneratedContractType.cs
- XmlSignificantWhitespace.cs
- TrackingServices.cs
- HwndHost.cs
- SortQueryOperator.cs
- TypeDelegator.cs
- DbConnectionPoolGroupProviderInfo.cs
- CodeCommentStatementCollection.cs
- UInt32.cs
- TemplatedWizardStep.cs
- ReadOnlyHierarchicalDataSourceView.cs
- GlyphTypeface.cs
- Span.cs
- HideDisabledControlAdapter.cs
- CodeTypeConstructor.cs
- ProvidePropertyAttribute.cs
- SourceFileInfo.cs
- StoryFragments.cs
- HandlerBase.cs
- MapPathBasedVirtualPathProvider.cs
- MembershipValidatePasswordEventArgs.cs
- StatusBarAutomationPeer.cs
- StylusShape.cs
- SafeThreadHandle.cs
- ComplexBindingPropertiesAttribute.cs
- NetMsmqSecurityMode.cs
- TextBoxBase.cs
- SoapTypeAttribute.cs
- DataBindEngine.cs
- TimeSpanStorage.cs
- SqlParameterCollection.cs
- WebPartPersonalization.cs
- Serialization.cs
- EncoderNLS.cs
- ConstraintConverter.cs
- AnnotationStore.cs
- ExceptionUtil.cs
- DoubleAnimation.cs
- Throw.cs
- ClientRuntimeConfig.cs
- ClientConfigurationHost.cs