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
- NativeMethods.cs
- EmbeddedMailObjectsCollection.cs
- XmlStreamStore.cs
- Match.cs
- WebPartExportVerb.cs
- ClientBuildManagerCallback.cs
- ContainerUIElement3D.cs
- validation.cs
- URLIdentityPermission.cs
- SHA1.cs
- AttachedPropertyDescriptor.cs
- BitmapSource.cs
- TextComposition.cs
- DataSourceControlBuilder.cs
- CryptoKeySecurity.cs
- XmlDataSourceView.cs
- LocalizationParserHooks.cs
- XmlEnumAttribute.cs
- ListSortDescription.cs
- Hash.cs
- ImageUrlEditor.cs
- EncryptedType.cs
- EmptyEnumerator.cs
- ToolStripSeparatorRenderEventArgs.cs
- DataServiceHostFactory.cs
- SqlTransaction.cs
- ElementMarkupObject.cs
- XmlSchemaImport.cs
- Point.cs
- StateItem.cs
- _SafeNetHandles.cs
- NonValidatingSecurityTokenAuthenticator.cs
- WebRequestModuleElement.cs
- SqlXml.cs
- NetMsmqBindingElement.cs
- XsdBuilder.cs
- FixedSOMTableCell.cs
- ConfigurationException.cs
- DesignerEditorPartChrome.cs
- InstanceKeyView.cs
- SortedList.cs
- TemplateXamlTreeBuilder.cs
- nulltextnavigator.cs
- RTLAwareMessageBox.cs
- RealizationDrawingContextWalker.cs
- HashHelper.cs
- MetadataItemCollectionFactory.cs
- ThreadInterruptedException.cs
- AssociationType.cs
- BrushConverter.cs
- SecurityRuntime.cs
- PartEditor.cs
- XmlSchemaSimpleTypeRestriction.cs
- IteratorFilter.cs
- MarkupExtensionReturnTypeAttribute.cs
- DurationConverter.cs
- SQLByteStorage.cs
- Single.cs
- MessageSecurityOverMsmqElement.cs
- UnsafeNativeMethods.cs
- SwitchLevelAttribute.cs
- WebSysDescriptionAttribute.cs
- ConnectionString.cs
- DefaultAsyncDataDispatcher.cs
- XmlTextReader.cs
- RpcCryptoContext.cs
- Soap12FormatExtensions.cs
- HostExecutionContextManager.cs
- DataGridView.cs
- Debug.cs
- InheritedPropertyDescriptor.cs
- FirewallWrapper.cs
- StylusButtonCollection.cs
- contentDescriptor.cs
- TransformPattern.cs
- CalendarDataBindingHandler.cs
- Int32Rect.cs
- HttpSysSettings.cs
- XmlChildNodes.cs
- RepeatBehaviorConverter.cs
- DrawItemEvent.cs
- ContextMenuStripGroupCollection.cs
- DrawTreeNodeEventArgs.cs
- FormDesigner.cs
- Calendar.cs
- EventRoute.cs
- ConnectionManagementElement.cs
- XPathDocument.cs
- Single.cs
- SpellerInterop.cs
- SafeMILHandleMemoryPressure.cs
- AttributeQuery.cs
- QueryOperationResponseOfT.cs
- Page.cs
- HttpRawResponse.cs
- Light.cs
- OracleSqlParser.cs
- XmlSecureResolver.cs
- ListSortDescription.cs
- TabletDeviceInfo.cs