Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Reflection / DefaultMemberAttribute.cs / 1305376 / 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; [Serializable] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Interface)] [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;} } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // 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; [Serializable] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Interface)] [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;} } } } // 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
- MobileListItem.cs
- CollectionContainer.cs
- DataRowChangeEvent.cs
- DPCustomTypeDescriptor.cs
- AppDomainFactory.cs
- EpmContentDeSerializer.cs
- TransformCollection.cs
- ParameterModifier.cs
- CellTreeNode.cs
- ToolStripSplitButton.cs
- HTTPRemotingHandler.cs
- Byte.cs
- FullTextState.cs
- BaseCAMarshaler.cs
- DoubleLinkList.cs
- DBDataPermissionAttribute.cs
- ColorPalette.cs
- GZipUtils.cs
- TableHeaderCell.cs
- AnnotationElement.cs
- ZoneButton.cs
- HtmlContainerControl.cs
- GridViewRowPresenterBase.cs
- NamedObject.cs
- unsafeIndexingFilterStream.cs
- PermissionAttributes.cs
- MenuItemStyle.cs
- EncodingTable.cs
- DataSourceCache.cs
- SafeSecurityHandles.cs
- AttachmentCollection.cs
- InkCollectionBehavior.cs
- TTSEvent.cs
- TextBoxRenderer.cs
- AppDomainFactory.cs
- querybuilder.cs
- DataTrigger.cs
- CustomPopupPlacement.cs
- XmlBinaryReaderSession.cs
- NavigationProperty.cs
- XPathMultyIterator.cs
- DesignerTransaction.cs
- XmlSchemaAny.cs
- GlobalItem.cs
- HtmlContainerControl.cs
- SqlGenerator.cs
- EpmTargetPathSegment.cs
- WindowsAuthenticationModule.cs
- Compress.cs
- PageHandlerFactory.cs
- DrawingCollection.cs
- CompoundFileIOPermission.cs
- BaseConfigurationRecord.cs
- TextStore.cs
- JournalNavigationScope.cs
- DbBuffer.cs
- Rss20ItemFormatter.cs
- GraphicsState.cs
- XmlDocumentType.cs
- Rotation3DAnimationBase.cs
- CachedBitmap.cs
- RadioButtonRenderer.cs
- XmlSchemaChoice.cs
- CipherData.cs
- ConfigurationStrings.cs
- Queue.cs
- TextFormatterHost.cs
- StringPropertyBuilder.cs
- DataKeyCollection.cs
- PackWebRequest.cs
- DataRowComparer.cs
- ResolveNameEventArgs.cs
- ConfigurationValue.cs
- PrinterUnitConvert.cs
- ValidatorAttribute.cs
- glyphs.cs
- x509store.cs
- MetadataItem_Static.cs
- DataGridViewComboBoxColumn.cs
- PersistenceProviderFactory.cs
- WizardPanelChangingEventArgs.cs
- XPathNode.cs
- SafeNativeMethods.cs
- WebPartRestoreVerb.cs
- IisTraceListener.cs
- DesignerVerb.cs
- TypedDatasetGenerator.cs
- ParenthesizePropertyNameAttribute.cs
- DuplicateWaitObjectException.cs
- ToolBar.cs
- XmlAttributes.cs
- EmptyEnumerator.cs
- UTF32Encoding.cs
- XmlHierarchicalDataSourceView.cs
- NotConverter.cs
- ListSortDescriptionCollection.cs
- MappingItemCollection.cs
- ProxyWebPartManager.cs
- SectionInput.cs
- TaskHelper.cs