Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Message.cs
- ObjectSpanRewriter.cs
- WhitespaceRule.cs
- FixedSOMContainer.cs
- AdapterDictionary.cs
- Decorator.cs
- WindowsRichEdit.cs
- DeviceSpecificDesigner.cs
- URLIdentityPermission.cs
- QueryResults.cs
- WebConfigurationHost.cs
- Shape.cs
- UpdatePanelTriggerCollection.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- StreamHelper.cs
- documentsequencetextpointer.cs
- ComEventsHelper.cs
- PersistChildrenAttribute.cs
- OleDbCommand.cs
- ConfigurationElement.cs
- DataBoundControl.cs
- httpserverutility.cs
- OperatingSystemVersionCheck.cs
- ToolStripComboBox.cs
- SynchronizationLockException.cs
- XmlnsPrefixAttribute.cs
- DefaultCommandExtensionCallback.cs
- Process.cs
- CqlParser.cs
- RawStylusActions.cs
- ReferencedType.cs
- sqlcontext.cs
- SmtpNtlmAuthenticationModule.cs
- DataAccessor.cs
- StringFreezingAttribute.cs
- SingleTagSectionHandler.cs
- FontStretchConverter.cs
- WorkflowRuntimeService.cs
- WindowsFormsHostAutomationPeer.cs
- OdbcConnectionOpen.cs
- ConnectionInterfaceCollection.cs
- LocalBuilder.cs
- PropertyItem.cs
- XslAstAnalyzer.cs
- ClientEventManager.cs
- PenContexts.cs
- GradientBrush.cs
- Config.cs
- SafeFileMappingHandle.cs
- WindowsPrincipal.cs
- XmlJsonWriter.cs
- _NestedSingleAsyncResult.cs
- ValidationResult.cs
- GetPageCompletedEventArgs.cs
- CodeEntryPointMethod.cs
- BuildResultCache.cs
- MarkupCompilePass2.cs
- TransformBlockRequest.cs
- RepeatButton.cs
- XPathNodePointer.cs
- BaseValidator.cs
- TemplateParser.cs
- EncodingConverter.cs
- DataObjectMethodAttribute.cs
- SHA512.cs
- AutoResetEvent.cs
- TypeSource.cs
- WmlListAdapter.cs
- elementinformation.cs
- StrokeCollectionConverter.cs
- SecurityImpersonationBehavior.cs
- RpcResponse.cs
- StylusPointProperties.cs
- CompositeDataBoundControl.cs
- ToolBarButton.cs
- Attributes.cs
- XD.cs
- CoordinationService.cs
- XmlStreamNodeWriter.cs
- CodeExpressionCollection.cs
- TimeEnumHelper.cs
- GroupBox.cs
- DateTimeValueSerializerContext.cs
- ObsoleteAttribute.cs
- KeyEventArgs.cs
- AttachmentCollection.cs
- InheritanceContextHelper.cs
- PropertyDescriptorComparer.cs
- DataSetMappper.cs
- ListViewUpdateEventArgs.cs
- TreeNodeConverter.cs
- VirtualPath.cs
- ContentValidator.cs
- DivideByZeroException.cs
- ObjectDataSourceView.cs
- OdbcConnectionHandle.cs
- BroadcastEventHelper.cs
- HtmlInputText.cs
- MultiTrigger.cs
- OutputCacheSettings.cs