Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / clr / src / BCL / System / Reflection / DefaultMemberAttribute.cs / 1 / DefaultMemberAttribute.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== //////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////// // // DefaultMemberAttribute is defines the Member of a Type that is the "default" // member used by Type.InvokeMember. The default member is simply a name given // to a type. // // // // namespace System.Reflection { using System; [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Interface),Serializable] [System.Runtime.InteropServices.ComVisible(true)] public sealed class DefaultMemberAttribute : Attribute { // The name of the member private String m_memberName; // You must provide the name of the member, this is required public DefaultMemberAttribute(String memberName) { m_memberName = memberName; } // A get accessor to return the name from the attribute. // NOTE: There is no setter because the name must be provided // to the constructor. The name is not optional. public String MemberName { get {return m_memberName;} } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CreateUserWizard.cs
- WebScriptMetadataMessage.cs
- XmlSequenceWriter.cs
- XmlNodeList.cs
- HttpHandlersSection.cs
- ParseHttpDate.cs
- AnonymousIdentificationModule.cs
- DelayedRegex.cs
- WindowsListViewScroll.cs
- StandardCommands.cs
- ButtonFieldBase.cs
- ModelPropertyDescriptor.cs
- EventMappingSettingsCollection.cs
- RSAOAEPKeyExchangeDeformatter.cs
- PolicyLevel.cs
- PasswordTextNavigator.cs
- XComponentModel.cs
- FrameSecurityDescriptor.cs
- KnownColorTable.cs
- XmlSchemaObjectCollection.cs
- MonikerSyntaxException.cs
- TableHeaderCell.cs
- Manipulation.cs
- PictureBox.cs
- StringUtil.cs
- SqlEnums.cs
- CompModSwitches.cs
- ErrorRuntimeConfig.cs
- CustomBindingElement.cs
- AddingNewEventArgs.cs
- XMLUtil.cs
- Column.cs
- DataGridItem.cs
- Canvas.cs
- ActivityDesignerResources.cs
- ResourceDictionaryCollection.cs
- ToolStripContainer.cs
- MeasureItemEvent.cs
- DynamicArgumentDialog.cs
- xmlsaver.cs
- PolicyImporterElement.cs
- XmlSchemaSequence.cs
- TimeSpan.cs
- MiniParameterInfo.cs
- Expander.cs
- GlyphElement.cs
- JsonReaderWriterFactory.cs
- StrokeSerializer.cs
- InkPresenterAutomationPeer.cs
- CompositeFontInfo.cs
- ApplicationHost.cs
- BaseCAMarshaler.cs
- TargetException.cs
- ButtonBase.cs
- XmlSerializerObjectSerializer.cs
- RepeaterItem.cs
- ProcessInfo.cs
- CommandField.cs
- DispatcherExceptionFilterEventArgs.cs
- DecoratedNameAttribute.cs
- ComponentCommands.cs
- WebConfigurationHost.cs
- SystemInformation.cs
- BufferAllocator.cs
- TextSelection.cs
- VectorCollectionValueSerializer.cs
- FormCollection.cs
- DropShadowBitmapEffect.cs
- TemplateControlParser.cs
- SelectedCellsCollection.cs
- CancelEventArgs.cs
- CaseStatementSlot.cs
- TextLineBreak.cs
- NodeFunctions.cs
- _NestedSingleAsyncResult.cs
- ProcessDesigner.cs
- AttributeSetAction.cs
- Thumb.cs
- TimeSpanConverter.cs
- WebPartsPersonalization.cs
- PiiTraceSource.cs
- Object.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- PopupRootAutomationPeer.cs
- OdbcTransaction.cs
- IriParsingElement.cs
- ListViewEditEventArgs.cs
- XPathDocument.cs
- PackUriHelper.cs
- QuadraticBezierSegment.cs
- FigureParagraph.cs
- SingleStorage.cs
- DataGridCell.cs
- WebBrowserDocumentCompletedEventHandler.cs
- HostingPreferredMapPath.cs
- BulletDecorator.cs
- TransformedBitmap.cs
- HyperLinkStyle.cs
- ImageCodecInfoPrivate.cs
- SqlMethodCallConverter.cs