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
- ExtensionDataReader.cs
- RegexReplacement.cs
- WindowsListViewItem.cs
- Evaluator.cs
- RuntimeEnvironment.cs
- DocumentViewerAutomationPeer.cs
- JavaScriptObjectDeserializer.cs
- WebPartMinimizeVerb.cs
- DiscardableAttribute.cs
- WebPartAddingEventArgs.cs
- InvalidFilterCriteriaException.cs
- HtmlLink.cs
- KeyTime.cs
- ErrorFormatterPage.cs
- CodeBlockBuilder.cs
- TokenBasedSetEnumerator.cs
- ClientScriptItemCollection.cs
- QueryCursorEventArgs.cs
- TraceListeners.cs
- XamlFilter.cs
- VectorKeyFrameCollection.cs
- StyleCollection.cs
- Rotation3DAnimation.cs
- TearOffProxy.cs
- SoapElementAttribute.cs
- oledbmetadatacollectionnames.cs
- NamespaceMapping.cs
- D3DImage.cs
- SectionInput.cs
- MimeTypeMapper.cs
- ValidationPropertyAttribute.cs
- ToolboxSnapDragDropEventArgs.cs
- OracleParameterBinding.cs
- MetabaseServerConfig.cs
- EvidenceTypeDescriptor.cs
- KeyInfo.cs
- DbConnectionPool.cs
- UIElement3DAutomationPeer.cs
- DocumentPageView.cs
- HttpCachePolicy.cs
- WarningException.cs
- Journal.cs
- CounterSample.cs
- HMACRIPEMD160.cs
- CompareValidator.cs
- WindowsAuthenticationModule.cs
- ToolStripContentPanelRenderEventArgs.cs
- SoapInteropTypes.cs
- Menu.cs
- BatchServiceHost.cs
- CatalogPartChrome.cs
- CodeDomLoader.cs
- OSFeature.cs
- CreateParams.cs
- ProvidePropertyAttribute.cs
- HttpChannelHelpers.cs
- Utils.cs
- PreservationFileWriter.cs
- ResourceDictionaryCollection.cs
- Events.cs
- ScalarConstant.cs
- DataGridViewRowsAddedEventArgs.cs
- TreeViewAutomationPeer.cs
- ExpressionBuilderCollection.cs
- RelatedCurrencyManager.cs
- AnonymousIdentificationModule.cs
- SizeAnimationClockResource.cs
- PrintControllerWithStatusDialog.cs
- ListViewCancelEventArgs.cs
- NaturalLanguageHyphenator.cs
- DocumentGridPage.cs
- SemaphoreSlim.cs
- TypedRowGenerator.cs
- ResXBuildProvider.cs
- SqlConnectionStringBuilder.cs
- ProcessStartInfo.cs
- SByteConverter.cs
- FunctionOverloadResolver.cs
- ContextProperty.cs
- ListBase.cs
- DbProviderSpecificTypePropertyAttribute.cs
- CodeDOMProvider.cs
- _ListenerRequestStream.cs
- AddInController.cs
- BrowserDefinition.cs
- Accessors.cs
- PolyBezierSegmentFigureLogic.cs
- ObjectDataSourceStatusEventArgs.cs
- ZipIOFileItemStream.cs
- XomlDesignerLoader.cs
- HuffmanTree.cs
- ScriptServiceAttribute.cs
- StandardMenuStripVerb.cs
- TemplateAction.cs
- Exception.cs
- ProgressBarRenderer.cs
- LogArchiveSnapshot.cs
- diagnosticsswitches.cs
- NameTable.cs
- CollaborationHelperFunctions.cs