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
- QilParameter.cs
- TypeDescriptionProviderAttribute.cs
- PriorityQueue.cs
- TextTreeNode.cs
- DoubleKeyFrameCollection.cs
- SqlBooleanMismatchVisitor.cs
- TextView.cs
- GradientBrush.cs
- InputScope.cs
- Polygon.cs
- EDesignUtil.cs
- LinkLabelLinkClickedEvent.cs
- SimpleRecyclingCache.cs
- BinHexDecoder.cs
- QueryPageSettingsEventArgs.cs
- diagnosticsswitches.cs
- _AutoWebProxyScriptHelper.cs
- WebBrowserProgressChangedEventHandler.cs
- SrgsItemList.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- DiagnosticEventProvider.cs
- TextBoxRenderer.cs
- WpfXamlLoader.cs
- TemplateContent.cs
- AssemblyCollection.cs
- InplaceBitmapMetadataWriter.cs
- ToolTipAutomationPeer.cs
- ProviderSettingsCollection.cs
- securitymgrsite.cs
- SmtpNegotiateAuthenticationModule.cs
- LeafCellTreeNode.cs
- ApplicationTrust.cs
- TypeInitializationException.cs
- SslStream.cs
- ConnectorSelectionGlyph.cs
- TraceSwitch.cs
- DPAPIProtectedConfigurationProvider.cs
- UITypeEditor.cs
- SafeNativeMethods.cs
- CompilationPass2TaskInternal.cs
- MemoryFailPoint.cs
- SQLRoleProvider.cs
- SerializerWriterEventHandlers.cs
- Transform3D.cs
- XPathNavigatorReader.cs
- DES.cs
- SystemWebExtensionsSectionGroup.cs
- ArraySet.cs
- HealthMonitoringSectionHelper.cs
- BindingExpression.cs
- DataAdapter.cs
- TrustLevel.cs
- CreateDataSourceDialog.cs
- ServiceManager.cs
- AffineTransform3D.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- QueueProcessor.cs
- CompressionTracing.cs
- NonClientArea.cs
- OverflowException.cs
- ListControlConvertEventArgs.cs
- ReadOnlyDataSourceView.cs
- BoundColumn.cs
- LineGeometry.cs
- nulltextcontainer.cs
- DesignBindingValueUIHandler.cs
- DataTransferEventArgs.cs
- HtmlTitle.cs
- DataGridColumnHeadersPresenter.cs
- ImageField.cs
- Size.cs
- DoubleConverter.cs
- WSSecurityOneDotZeroSendSecurityHeader.cs
- UnsafeNetInfoNativeMethods.cs
- EntityDataSourceContainerNameItem.cs
- TypeSystemProvider.cs
- XomlDesignerLoader.cs
- TcpChannelFactory.cs
- ReadOnlyCollection.cs
- StrongName.cs
- TriState.cs
- SupportingTokenSecurityTokenResolver.cs
- DateTimeUtil.cs
- AssemblyName.cs
- ScrollItemPattern.cs
- PropertyGrid.cs
- KeyInfo.cs
- ToolStripLocationCancelEventArgs.cs
- Atom10FormatterFactory.cs
- DefaultTextStore.cs
- GB18030Encoding.cs
- OdbcConnectionPoolProviderInfo.cs
- RestHandlerFactory.cs
- CreatingCookieEventArgs.cs
- XmlSchemaSimpleTypeList.cs
- Int32Animation.cs
- TemplatedWizardStep.cs
- LoadGrammarCompletedEventArgs.cs
- InternalConfigConfigurationFactory.cs
- DataContractSerializerOperationFormatter.cs