Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Core / System / Runtime / CompilerServices / DynamicAttribute.cs / 1305376 / DynamicAttribute.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== using System.Collections.Generic; namespace System.Runtime.CompilerServices { ////// Indicates that the use of [AttributeUsage(AttributeTargets.Field | AttributeTargets.Parameter | AttributeTargets.Property | AttributeTargets.ReturnValue | AttributeTargets.Class | AttributeTargets.Struct)] public sealed class DynamicAttribute : Attribute { private readonly bool[] _transformFlags; ///on a member is meant to be treated as a dynamically dispatched type. /// /// Initializes a new instance of the ///class. /// /// When used in an attribute specification, the default constructor is semantically /// equivalent to public DynamicAttribute() { this._transformFlags = new bool[] { true }; } ///DynamicAttribute({ true }) , and can be considered /// a shorthand for that expression. It should therefore only be used on an element /// of type. /// /// Initializes a new instance of the /// Specifies, in a prefix traversal of a type's /// construction, whichclass. /// occurrences are meant to /// be treated as a dynamically dispatched type. /// /// This constructor is meant to be used on types that are built on an underlying /// occurrence of public DynamicAttribute(bool[] transformFlags) { if (transformFlags == null) { throw new ArgumentNullException("transformFlags"); } this._transformFlags = transformFlags; } ///that is meant to be treated dynamically. /// For instance, if C is a generic type with two type parameters, then a /// use of the constructed typeC< /// might be intended to treat the first type argument dynamically and the second /// normally, in which case the appropriate attribute specification should /// use a, > transformFlags value of{ false, true, false } . ////// Specifies, in a prefix traversal of a type's /// construction, which public IListoccurrences are meant to /// be treated as a dynamically dispatched type. /// TransformFlags { get { return Array.AsReadOnly(this._transformFlags); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== using System.Collections.Generic; namespace System.Runtime.CompilerServices { /// /// Indicates that the use of [AttributeUsage(AttributeTargets.Field | AttributeTargets.Parameter | AttributeTargets.Property | AttributeTargets.ReturnValue | AttributeTargets.Class | AttributeTargets.Struct)] public sealed class DynamicAttribute : Attribute { private readonly bool[] _transformFlags; ///on a member is meant to be treated as a dynamically dispatched type. /// /// Initializes a new instance of the ///class. /// /// When used in an attribute specification, the default constructor is semantically /// equivalent to public DynamicAttribute() { this._transformFlags = new bool[] { true }; } ///DynamicAttribute({ true }) , and can be considered /// a shorthand for that expression. It should therefore only be used on an element /// of type. /// /// Initializes a new instance of the /// Specifies, in a prefix traversal of a type's /// construction, whichclass. /// occurrences are meant to /// be treated as a dynamically dispatched type. /// /// This constructor is meant to be used on types that are built on an underlying /// occurrence of public DynamicAttribute(bool[] transformFlags) { if (transformFlags == null) { throw new ArgumentNullException("transformFlags"); } this._transformFlags = transformFlags; } ///that is meant to be treated dynamically. /// For instance, if C is a generic type with two type parameters, then a /// use of the constructed typeC< /// might be intended to treat the first type argument dynamically and the second /// normally, in which case the appropriate attribute specification should /// use a, > transformFlags value of{ false, true, false } . ////// Specifies, in a prefix traversal of a type's /// construction, which public IListoccurrences are meant to /// be treated as a dynamically dispatched type. /// TransformFlags { get { return Array.AsReadOnly(this._transformFlags); } } } } // 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
- HtmlHistory.cs
- InputScopeNameConverter.cs
- PersistenceTypeAttribute.cs
- ReflectionTypeLoadException.cs
- BamlTreeUpdater.cs
- JsonObjectDataContract.cs
- PerformanceCounterPermissionEntryCollection.cs
- ClipboardProcessor.cs
- Metadata.cs
- TreeViewCancelEvent.cs
- VerticalAlignConverter.cs
- PeerNearMe.cs
- HttpStaticObjectsCollectionWrapper.cs
- Rect3DValueSerializer.cs
- followingquery.cs
- OutputCacheSettings.cs
- SafeCryptoHandles.cs
- WebServiceAttribute.cs
- PropertyMap.cs
- NullableDoubleAverageAggregationOperator.cs
- VirtualPath.cs
- OutputScopeManager.cs
- TransactionContextValidator.cs
- Stack.cs
- StreamUpgradeAcceptor.cs
- HtmlLink.cs
- FixedSOMPageElement.cs
- ConnectorRouter.cs
- ReadOnlyNameValueCollection.cs
- WinFormsComponentEditor.cs
- DataBindEngine.cs
- DoubleAnimationClockResource.cs
- unsafeIndexingFilterStream.cs
- TextRunCache.cs
- AssertFilter.cs
- ExpanderAutomationPeer.cs
- TypeHelpers.cs
- DrawingGroupDrawingContext.cs
- WebBaseEventKeyComparer.cs
- XmlNamespaceMappingCollection.cs
- ConfigXmlSignificantWhitespace.cs
- GroupBoxAutomationPeer.cs
- InfoCardProofToken.cs
- XomlCompilerParameters.cs
- PreservationFileReader.cs
- MetabaseReader.cs
- ManipulationCompletedEventArgs.cs
- EventMappingSettingsCollection.cs
- SystemException.cs
- DashStyles.cs
- SpecularMaterial.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- MimeMapping.cs
- Screen.cs
- BamlBinaryReader.cs
- DataPagerFieldCollection.cs
- XmlAttributes.cs
- WindowsFormsHelpers.cs
- HtmlInputReset.cs
- ActivityStateQuery.cs
- QilChoice.cs
- SHA256Cng.cs
- AsyncCompletedEventArgs.cs
- CommandPlan.cs
- SystemInformation.cs
- DesignTimeXamlWriter.cs
- ControlCollection.cs
- RegexCompiler.cs
- DataGridViewElement.cs
- ValueType.cs
- WebPartConnectionsConfigureVerb.cs
- NextPreviousPagerField.cs
- WindowsBrush.cs
- KnownTypesHelper.cs
- TaskFormBase.cs
- Simplifier.cs
- xsdvalidator.cs
- WebCategoryAttribute.cs
- HTTPAPI_VERSION.cs
- InfoCardCryptoHelper.cs
- MarkupObject.cs
- EntryIndex.cs
- EntityContainerEntitySet.cs
- TCPClient.cs
- Rectangle.cs
- PropertyReferenceExtension.cs
- tabpagecollectioneditor.cs
- SelectionPatternIdentifiers.cs
- ApplyTemplatesAction.cs
- WebContext.cs
- RelationshipSet.cs
- MaskedTextBox.cs
- DataGridTablesFactory.cs
- InvalidDataException.cs
- DebugView.cs
- CompatibleIComparer.cs
- JournalNavigationScope.cs
- PasswordBoxAutomationPeer.cs
- RelativeSource.cs
- TargetControlTypeCache.cs