Code:
/ DotNET / DotNET / 8.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
- SoapParser.cs
- SqlDataSourceStatusEventArgs.cs
- DetailsViewUpdateEventArgs.cs
- Pens.cs
- FragmentQueryKB.cs
- MetadataItem_Static.cs
- PersistChildrenAttribute.cs
- ConstNode.cs
- Brush.cs
- WmlPhoneCallAdapter.cs
- ArraySortHelper.cs
- rsa.cs
- LogSwitch.cs
- GotoExpression.cs
- MouseButtonEventArgs.cs
- EmptyQuery.cs
- TypeConverterHelper.cs
- UITypeEditor.cs
- MetadataCollection.cs
- Msec.cs
- OpCellTreeNode.cs
- RowBinding.cs
- mda.cs
- TypeDescriptorContext.cs
- MessageQueueException.cs
- RegexParser.cs
- Material.cs
- ServiceHttpHandlerFactory.cs
- TTSEvent.cs
- ColorAnimationBase.cs
- _HeaderInfoTable.cs
- StackBuilderSink.cs
- EditorZone.cs
- DynamicDocumentPaginator.cs
- EncodingNLS.cs
- TextParagraph.cs
- TextSegment.cs
- XPathPatternBuilder.cs
- MDIClient.cs
- SimpleType.cs
- DataGridItem.cs
- UnsafeNativeMethods.cs
- ThrowHelper.cs
- RenderContext.cs
- ScrollViewerAutomationPeer.cs
- GenerateTemporaryAssemblyTask.cs
- DataGridHelper.cs
- MetadataArtifactLoader.cs
- SafeSecurityHelper.cs
- XsltArgumentList.cs
- StringValueSerializer.cs
- FeatureSupport.cs
- InkCanvasFeedbackAdorner.cs
- WindowsSysHeader.cs
- cookie.cs
- LineMetrics.cs
- ControlBuilderAttribute.cs
- LicenseContext.cs
- ExtensionQuery.cs
- SaveFileDialog.cs
- MaxValueConverter.cs
- UIHelper.cs
- DoubleCollection.cs
- ToolStripRenderEventArgs.cs
- UpdatePanelTrigger.cs
- DetailsViewRowCollection.cs
- MetadataItemEmitter.cs
- TransactionContextManager.cs
- ModuleBuilder.cs
- SAPICategories.cs
- DBNull.cs
- NamespaceDecl.cs
- EntitySqlQueryState.cs
- Attribute.cs
- ColumnReorderedEventArgs.cs
- BaseConfigurationRecord.cs
- IfAction.cs
- UIntPtr.cs
- ActivityValidator.cs
- ScrollItemProviderWrapper.cs
- Image.cs
- MonthChangedEventArgs.cs
- MethodRental.cs
- EditBehavior.cs
- EntityContainerEmitter.cs
- VariantWrapper.cs
- DecoderExceptionFallback.cs
- TypeReference.cs
- ISCIIEncoding.cs
- DataRowChangeEvent.cs
- UserNameSecurityTokenAuthenticator.cs
- CuspData.cs
- ToolStripContentPanel.cs
- QuaternionValueSerializer.cs
- TextEditorParagraphs.cs
- ChtmlMobileTextWriter.cs
- NativeObjectSecurity.cs
- BaseDataBoundControl.cs
- RSAOAEPKeyExchangeDeformatter.cs
- Inline.cs