Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- NativeCompoundFileAPIs.cs
- TypeConverters.cs
- Win32Exception.cs
- FixedTextPointer.cs
- XmlDataSourceNodeDescriptor.cs
- DataServiceQueryOfT.cs
- CodeStatementCollection.cs
- _StreamFramer.cs
- SubtreeProcessor.cs
- EmptyElement.cs
- ControlCachePolicy.cs
- SettingsPropertyWrongTypeException.cs
- ListViewGroupItemCollection.cs
- CustomTypeDescriptor.cs
- HttpListener.cs
- KeyValueConfigurationElement.cs
- RepeaterCommandEventArgs.cs
- Validator.cs
- NameValuePair.cs
- CodeTypeDeclarationCollection.cs
- ReadOnlyCollection.cs
- EndSelectCardRequest.cs
- RelatedView.cs
- NumericUpDownAcceleration.cs
- IIS7WorkerRequest.cs
- RSAPKCS1SignatureFormatter.cs
- Matrix3DStack.cs
- PageThemeBuildProvider.cs
- ReadOnlyDictionary.cs
- FlowDocumentReaderAutomationPeer.cs
- DynamicValueConverter.cs
- __ConsoleStream.cs
- SqlRowUpdatedEvent.cs
- DiscoveryClientChannelBase.cs
- EncryptedPackage.cs
- CompositeDataBoundControl.cs
- HttpListenerException.cs
- TextEndOfSegment.cs
- AssociatedControlConverter.cs
- XmlSignatureManifest.cs
- MemoryMappedViewStream.cs
- ComponentChangingEvent.cs
- ToolStripScrollButton.cs
- ValueTable.cs
- CacheRequest.cs
- Assembly.cs
- OracleNumber.cs
- EventRoute.cs
- LinkButton.cs
- BooleanAnimationBase.cs
- RawStylusInputCustomDataList.cs
- LogicalExpressionEditor.cs
- SqlUDTStorage.cs
- ConnectionManagementElementCollection.cs
- ApplicationManager.cs
- PersonalizationStateInfoCollection.cs
- UpdateCompiler.cs
- ExpressionVisitorHelpers.cs
- DocumentPage.cs
- DescendantBaseQuery.cs
- ControlValuePropertyAttribute.cs
- MsdtcClusterUtils.cs
- TCPClient.cs
- NestPullup.cs
- WindowsListViewSubItem.cs
- TextViewSelectionProcessor.cs
- FileRecordSequenceHelper.cs
- ObfuscationAttribute.cs
- Queue.cs
- HtmlDocument.cs
- CellParaClient.cs
- OdbcConnectionStringbuilder.cs
- PropertyChangedEventManager.cs
- HttpCookie.cs
- ResetableIterator.cs
- SafeRightsManagementHandle.cs
- AssertSection.cs
- DataRowChangeEvent.cs
- XMLSyntaxException.cs
- SqlBulkCopy.cs
- ETagAttribute.cs
- UnsafeNativeMethodsTablet.cs
- ObjectStorage.cs
- DataGridViewButtonColumn.cs
- ThreadNeutralSemaphore.cs
- StatusBar.cs
- MainMenu.cs
- EditorPartCollection.cs
- WindowsListBox.cs
- DocumentReferenceCollection.cs
- QuadraticBezierSegment.cs
- ManagementBaseObject.cs
- XPathDocument.cs
- OutOfMemoryException.cs
- Console.cs
- StateMachineSubscriptionManager.cs
- RawStylusInput.cs
- AliasGenerator.cs
- XPathDescendantIterator.cs
- ScriptControlDescriptor.cs