Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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;} } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // 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;} } } } // 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
- SourceFilter.cs
- UTF8Encoding.cs
- OleDbDataReader.cs
- LineSegment.cs
- XmlAnyElementAttributes.cs
- FtpWebRequest.cs
- Thread.cs
- Point3DAnimationUsingKeyFrames.cs
- PartialCachingAttribute.cs
- SendAgentStatusRequest.cs
- CommandField.cs
- CheckBox.cs
- ParseHttpDate.cs
- ModelItemCollectionImpl.cs
- StringOutput.cs
- LinkedDataMemberFieldEditor.cs
- WebConfigurationManager.cs
- StateRuntime.cs
- ADMembershipProvider.cs
- TemplateNameScope.cs
- ToolboxService.cs
- Int64Animation.cs
- ScriptReferenceBase.cs
- WorkflowFileItem.cs
- CodeGeneratorOptions.cs
- Ipv6Element.cs
- SessionPageStateSection.cs
- MonitoringDescriptionAttribute.cs
- SystemException.cs
- ClientRuntimeConfig.cs
- GridToolTip.cs
- StylusTip.cs
- GatewayDefinition.cs
- ColumnResult.cs
- HighlightVisual.cs
- Rfc2898DeriveBytes.cs
- BroadcastEventHelper.cs
- NotCondition.cs
- SqlDependencyUtils.cs
- PingOptions.cs
- EdmRelationshipRoleAttribute.cs
- SerializationObjectManager.cs
- DatagramAdapter.cs
- CodeStatement.cs
- TextRange.cs
- MimeBasePart.cs
- AsymmetricKeyExchangeFormatter.cs
- PostBackOptions.cs
- SecurityTokenParameters.cs
- WindowsImpersonationContext.cs
- DesignerDataColumn.cs
- TextTreeRootNode.cs
- TypeGeneratedEventArgs.cs
- ErasingStroke.cs
- UpdatePanelTrigger.cs
- PropertyNames.cs
- NavigatingCancelEventArgs.cs
- CodeDomLoader.cs
- OleDbRowUpdatedEvent.cs
- HttpCachePolicyWrapper.cs
- ToolStripContentPanel.cs
- DispatcherExceptionEventArgs.cs
- ProxyElement.cs
- DataGridViewCellStyle.cs
- PropertyItemInternal.cs
- URLString.cs
- ObjectTypeMapping.cs
- Stopwatch.cs
- EndpointNotFoundException.cs
- VisualState.cs
- XmlDocumentSurrogate.cs
- AutomationPattern.cs
- RelatedView.cs
- RadialGradientBrush.cs
- HandleExceptionArgs.cs
- MexBindingBindingCollectionElement.cs
- XPathBinder.cs
- NamespaceQuery.cs
- mediaeventargs.cs
- Buffer.cs
- DispatcherSynchronizationContext.cs
- ViewStateException.cs
- SqlEnums.cs
- GridViewColumn.cs
- CellParaClient.cs
- _TLSstream.cs
- EncryptedReference.cs
- BasicExpressionVisitor.cs
- NameValueFileSectionHandler.cs
- BindToObject.cs
- FusionWrap.cs
- oledbmetadatacolumnnames.cs
- PreviewKeyDownEventArgs.cs
- EncryptedReference.cs
- HtmlSelect.cs
- HttpResponseHeader.cs
- XamlPathDataSerializer.cs
- XNodeValidator.cs
- SyndicationElementExtensionCollection.cs
- CodeIdentifier.cs