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
- EntityDataSourceDataSelection.cs
- Form.cs
- NativeMethods.cs
- Figure.cs
- TrackingServices.cs
- TextTreeInsertUndoUnit.cs
- DecimalConverter.cs
- PersonalizationEntry.cs
- IncrementalHitTester.cs
- ConditionalWeakTable.cs
- TemplateControlCodeDomTreeGenerator.cs
- ValuePattern.cs
- ForEachDesigner.xaml.cs
- PreviewPageInfo.cs
- DataRowCollection.cs
- DirectoryNotFoundException.cs
- Timeline.cs
- Grid.cs
- SslStreamSecurityUpgradeProvider.cs
- ApplicationContext.cs
- Point3DCollectionConverter.cs
- TextBlockAutomationPeer.cs
- FacetEnabledSchemaElement.cs
- DataGridParentRows.cs
- CleanUpVirtualizedItemEventArgs.cs
- ToolboxComponentsCreatingEventArgs.cs
- XmlNamespaceMapping.cs
- CodeAttributeDeclarationCollection.cs
- ProgressBarAutomationPeer.cs
- TypographyProperties.cs
- XsltInput.cs
- CompositionCommandSet.cs
- Selection.cs
- MetadataArtifactLoaderResource.cs
- XPathSingletonIterator.cs
- BatchParser.cs
- HttpClientCertificate.cs
- BookmarkResumptionRecord.cs
- PartManifestEntry.cs
- XmlSchemaComplexContentExtension.cs
- ExpressionParser.cs
- RedistVersionInfo.cs
- ServiceContractListItem.cs
- ProcessThreadCollection.cs
- TextElement.cs
- VectorCollectionValueSerializer.cs
- ComponentDispatcherThread.cs
- XamlClipboardData.cs
- SqlRowUpdatingEvent.cs
- RtfToXamlLexer.cs
- Brush.cs
- RectKeyFrameCollection.cs
- TextBoxBase.cs
- NameValueFileSectionHandler.cs
- HttpRuntimeSection.cs
- RuntimeConfig.cs
- RawTextInputReport.cs
- CreateRefExpr.cs
- C14NUtil.cs
- DmlSqlGenerator.cs
- Visitor.cs
- StringResourceManager.cs
- UIElement3DAutomationPeer.cs
- AttributeSetAction.cs
- ViewPort3D.cs
- FillBehavior.cs
- DecoratedNameAttribute.cs
- SmiRecordBuffer.cs
- Rfc2898DeriveBytes.cs
- RegexFCD.cs
- SQLInt32Storage.cs
- WebRequest.cs
- ManagedCodeMarkers.cs
- FaultBookmark.cs
- ChannelFactory.cs
- MenuItemBinding.cs
- IndicFontClient.cs
- BatchWriter.cs
- recordstatefactory.cs
- SqlNodeAnnotations.cs
- WebBrowserSiteBase.cs
- XmlName.cs
- SolidColorBrush.cs
- BitVec.cs
- FileUtil.cs
- ContextQuery.cs
- HwndPanningFeedback.cs
- EpmContentSerializerBase.cs
- loginstatus.cs
- NavigatingCancelEventArgs.cs
- FormViewDeleteEventArgs.cs
- Span.cs
- DbTransaction.cs
- MarshalByValueComponent.cs
- mediaclock.cs
- WebPartCloseVerb.cs
- WebServiceReceive.cs
- X509SecurityTokenAuthenticator.cs
- BamlRecordHelper.cs
- base64Transforms.cs