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

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- InvokeMethodActivityDesigner.cs
- DesignerDataSourceView.cs
- DesignerActionItemCollection.cs
- ResourcesBuildProvider.cs
- XsdBuildProvider.cs
- TemplateControl.cs
- OletxDependentTransaction.cs
- EventMap.cs
- objectquery_tresulttype.cs
- SqlSupersetValidator.cs
- ReachSerializer.cs
- XmlSecureResolver.cs
- CheckedListBox.cs
- CellCreator.cs
- InternalBufferOverflowException.cs
- COAUTHINFO.cs
- XsltArgumentList.cs
- TableLayoutPanel.cs
- UIPermission.cs
- TextBreakpoint.cs
- XsltOutput.cs
- CalendarAutoFormatDialog.cs
- VectorConverter.cs
- WebPartEditVerb.cs
- TrackingServices.cs
- PeoplePickerWrapper.cs
- SHA256.cs
- WebBrowserDocumentCompletedEventHandler.cs
- DataSourceCacheDurationConverter.cs
- CollectionEditorDialog.cs
- BeginEvent.cs
- AssemblyAttributesGoHere.cs
- SmtpLoginAuthenticationModule.cs
- File.cs
- DataContractJsonSerializerOperationFormatter.cs
- LiteralText.cs
- XmlCharCheckingWriter.cs
- unsafeIndexingFilterStream.cs
- PageTrueTypeFont.cs
- FunctionDetailsReader.cs
- COM2Enum.cs
- MimeMultiPart.cs
- PreviewPrintController.cs
- XmlLangPropertyAttribute.cs
- updatecommandorderer.cs
- TargetPerspective.cs
- DiagnosticTrace.cs
- InvalidFilterCriteriaException.cs
- Polygon.cs
- Update.cs
- TableCell.cs
- FragmentNavigationEventArgs.cs
- CreateSequenceResponse.cs
- BamlCollectionHolder.cs
- GreenMethods.cs
- ForAllOperator.cs
- DocumentXmlWriter.cs
- NetworkCredential.cs
- Msec.cs
- GeometryHitTestResult.cs
- CompilerResults.cs
- AssemblyCollection.cs
- Cursors.cs
- MapPathBasedVirtualPathProvider.cs
- FastEncoder.cs
- PositiveTimeSpanValidator.cs
- WorkflowInstanceProvider.cs
- AuthenticatedStream.cs
- FunctionImportElement.cs
- XmlArrayItemAttribute.cs
- EventProviderBase.cs
- FixedSOMLineCollection.cs
- ExpressionBuilder.cs
- WindowsToolbarAsMenu.cs
- MSHTMLHost.cs
- DataContractSerializerMessageContractImporter.cs
- PagedDataSource.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- XDeferredAxisSource.cs
- AlphabeticalEnumConverter.cs
- EventListener.cs
- XmlSiteMapProvider.cs
- URI.cs
- TypeToStringValueConverter.cs
- WrappedReader.cs
- ControlOperationInvoker.cs
- CodeDesigner.cs
- XmlIlGenerator.cs
- LockedActivityGlyph.cs
- ClientTargetCollection.cs
- TableCellAutomationPeer.cs
- CaseInsensitiveComparer.cs
- HtmlShim.cs
- QueryableFilterRepeater.cs
- BuildProvider.cs
- ConfigurationManagerInternalFactory.cs
- ButtonField.cs
- SqlRecordBuffer.cs
- PhotoPrintingIntent.cs
- TagPrefixAttribute.cs