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
- TogglePattern.cs
- ThousandthOfEmRealPoints.cs
- WebPart.cs
- HttpProtocolReflector.cs
- UInt16.cs
- ClientType.cs
- StringReader.cs
- FlowDocumentPage.cs
- XPathNodeHelper.cs
- KeyPressEvent.cs
- ResourceManager.cs
- HTMLTagNameToTypeMapper.cs
- UpdatePanelControlTrigger.cs
- DefaultValueAttribute.cs
- ActivationWorker.cs
- ColumnBinding.cs
- CatalogZoneAutoFormat.cs
- ComponentResourceKey.cs
- IndentedWriter.cs
- NavigatorInput.cs
- SystemIPInterfaceProperties.cs
- FormViewModeEventArgs.cs
- ReadingWritingEntityEventArgs.cs
- TreeNode.cs
- FilteredAttributeCollection.cs
- CompatibleIComparer.cs
- DispatcherOperation.cs
- ISessionStateStore.cs
- ValueUtilsSmi.cs
- altserialization.cs
- ItemAutomationPeer.cs
- VersionedStreamOwner.cs
- TwoPhaseCommit.cs
- Image.cs
- TypefaceCollection.cs
- WebPartActionVerb.cs
- Point4D.cs
- WebContext.cs
- _TimerThread.cs
- XmlDocument.cs
- Pair.cs
- AddDataControlFieldDialog.cs
- UnionExpr.cs
- NumericUpDownAcceleration.cs
- SqlDataSourceStatusEventArgs.cs
- _FtpControlStream.cs
- TabPanel.cs
- DataGridLinkButton.cs
- TextContainerHelper.cs
- AdRotator.cs
- DbMetaDataColumnNames.cs
- ExpressionEvaluator.cs
- XmlSerializationGeneratedCode.cs
- FormsAuthenticationUserCollection.cs
- RegexCaptureCollection.cs
- MissingMethodException.cs
- PeerFlooder.cs
- XmlArrayAttribute.cs
- RowCache.cs
- ClientUtils.cs
- HttpDictionary.cs
- ToolStripDropDownClosedEventArgs.cs
- DesignerActionUIService.cs
- AssociationSetMetadata.cs
- TrackingServices.cs
- SamlSecurityToken.cs
- SqlClientFactory.cs
- ProtocolsConfigurationEntry.cs
- XamlInterfaces.cs
- TemplateControlBuildProvider.cs
- ConditionalDesigner.cs
- InvariantComparer.cs
- GridLength.cs
- HighlightOverlayGlyph.cs
- FormatException.cs
- CopyEncoder.cs
- QilTernary.cs
- EntityClassGenerator.cs
- ListBoxItem.cs
- QueryValue.cs
- RootProfilePropertySettingsCollection.cs
- RuleInfoComparer.cs
- DesignSurface.cs
- ReferenceService.cs
- ScaleTransform.cs
- XPathScanner.cs
- BufferAllocator.cs
- HttpVersion.cs
- RangeValuePattern.cs
- HttpListener.cs
- SortAction.cs
- XmlDataProvider.cs
- PlatformCulture.cs
- TableProviderWrapper.cs
- ApplicationManager.cs
- VerificationAttribute.cs
- X509WindowsSecurityToken.cs
- ColorIndependentAnimationStorage.cs
- Calendar.cs
- ToolStripItemTextRenderEventArgs.cs