Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Reflection / DefaultMemberAttribute.cs / 1305376 / 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; [Serializable] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Interface)] [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; [Serializable] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Interface)] [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
- ControlEvent.cs
- ClickablePoint.cs
- RegexReplacement.cs
- DataBoundControlAdapter.cs
- TextElementAutomationPeer.cs
- RegexGroup.cs
- Image.cs
- Rfc2898DeriveBytes.cs
- CommonGetThemePartSize.cs
- Parser.cs
- ToolBar.cs
- Transform3DGroup.cs
- DependencyPropertyAttribute.cs
- DataMemberFieldConverter.cs
- RectAnimationUsingKeyFrames.cs
- BooleanConverter.cs
- TextModifier.cs
- MemberHolder.cs
- HttpMethodAttribute.cs
- SamlAuthenticationClaimResource.cs
- MbpInfo.cs
- securitycriticaldata.cs
- SessionSwitchEventArgs.cs
- DbProviderFactoriesConfigurationHandler.cs
- SqlCacheDependencySection.cs
- RemotingException.cs
- ByteAnimation.cs
- KeyPullup.cs
- NoPersistScope.cs
- SafeNativeMethodsMilCoreApi.cs
- PrimitiveSchema.cs
- ScriptingProfileServiceSection.cs
- UnionExpr.cs
- SystemIcmpV6Statistics.cs
- XmlILConstructAnalyzer.cs
- ZoneButton.cs
- MessagePartDescriptionCollection.cs
- StoreAnnotationsMap.cs
- ShimAsPublicXamlType.cs
- InvalidComObjectException.cs
- MultipleCopiesCollection.cs
- EventProviderWriter.cs
- Encoder.cs
- WebRequest.cs
- XmlSchemaElement.cs
- AsyncOperationManager.cs
- QueryAccessibilityHelpEvent.cs
- TrailingSpaceComparer.cs
- PropertyChangedEventArgs.cs
- RIPEMD160.cs
- AutomationPatternInfo.cs
- DataBinder.cs
- MultiView.cs
- WizardStepBase.cs
- Dump.cs
- SemanticResultKey.cs
- EntityDesignerUtils.cs
- PropertyEmitter.cs
- COM2ExtendedBrowsingHandler.cs
- XmlSchemaImporter.cs
- StringDictionary.cs
- ParserHooks.cs
- OperationResponse.cs
- QilFunction.cs
- SafeMILHandle.cs
- FullTextState.cs
- DataGridPageChangedEventArgs.cs
- ClientEventManager.cs
- ExpandedWrapper.cs
- ApplicationSecurityInfo.cs
- SystemColors.cs
- CapabilitiesPattern.cs
- ServiceOperationListItemList.cs
- DataListItem.cs
- StrongName.cs
- XmlSchemaCompilationSettings.cs
- StringOutput.cs
- SortDescription.cs
- PanelStyle.cs
- CallbackValidatorAttribute.cs
- DateTimeConstantAttribute.cs
- RootContext.cs
- ArithmeticException.cs
- MethodExpr.cs
- XmlNodeReader.cs
- TextFormatterImp.cs
- DataGridPagerStyle.cs
- newinstructionaction.cs
- XmlRawWriter.cs
- RelationshipNavigation.cs
- IPipelineRuntime.cs
- UserValidatedEventArgs.cs
- AnnotationMap.cs
- GenericTypeParameterBuilder.cs
- BindingRestrictions.cs
- HtmlSelect.cs
- SoapHeaderAttribute.cs
- IPAddressCollection.cs
- CodeLinePragma.cs
- CounterSample.cs