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
- WindowsListViewItemStartMenu.cs
- RootBrowserWindowAutomationPeer.cs
- CodeExpressionStatement.cs
- ProfileEventArgs.cs
- PropertyDescriptor.cs
- MessageFault.cs
- SQLMoney.cs
- ErrorRuntimeConfig.cs
- GenericEnumerator.cs
- SortQuery.cs
- TraceProvider.cs
- NetMsmqBindingElement.cs
- UserNameSecurityTokenProvider.cs
- FreezableDefaultValueFactory.cs
- StringValueSerializer.cs
- ExpressionWriter.cs
- StreamHelper.cs
- DelegatingStream.cs
- DrawingGroup.cs
- DescendantQuery.cs
- ObjectRef.cs
- XmlTypeAttribute.cs
- TabControl.cs
- EventsTab.cs
- OutKeywords.cs
- Brush.cs
- LayoutInformation.cs
- Delegate.cs
- TitleStyle.cs
- sqlser.cs
- ListParagraph.cs
- WindowsStatic.cs
- MouseGesture.cs
- ContainerControl.cs
- CatalogPart.cs
- XmlBufferReader.cs
- RuntimeArgumentHandle.cs
- CounterCreationDataConverter.cs
- adornercollection.cs
- MethodCallTranslator.cs
- StreamWithDictionary.cs
- KeyFrames.cs
- AddInBase.cs
- ExtensibleClassFactory.cs
- ObservableDictionary.cs
- SynchronizationContext.cs
- DesignBindingValueUIHandler.cs
- UnaryExpressionHelper.cs
- UIElement3D.cs
- SetterBaseCollection.cs
- SchemaNames.cs
- ScrollItemProviderWrapper.cs
- DbConnectionPool.cs
- WindowsFormsLinkLabel.cs
- SignatureHelper.cs
- SecurityAlgorithmSuiteConverter.cs
- TreeViewEvent.cs
- InputReportEventArgs.cs
- KeyValueSerializer.cs
- SqlServer2KCompatibilityAnnotation.cs
- MemberProjectedSlot.cs
- ControlBuilder.cs
- StatusBarItem.cs
- EndOfStreamException.cs
- RequestCachePolicy.cs
- MatrixAnimationUsingPath.cs
- SHA512.cs
- MachineKeyConverter.cs
- DragDeltaEventArgs.cs
- mediaclock.cs
- SqlTypeSystemProvider.cs
- CharStorage.cs
- HostedHttpRequestAsyncResult.cs
- FormsAuthenticationTicket.cs
- EntityDesignPluralizationHandler.cs
- HostedNamedPipeTransportManager.cs
- DocumentSequenceHighlightLayer.cs
- itemelement.cs
- BinaryObjectReader.cs
- StronglyTypedResourceBuilder.cs
- SafePEFileHandle.cs
- OracleConnectionString.cs
- RequestUriProcessor.cs
- InvalidCastException.cs
- Configuration.cs
- NameValueSectionHandler.cs
- PasswordTextContainer.cs
- FigureParaClient.cs
- DrawingGroup.cs
- ProcessingInstructionAction.cs
- Function.cs
- DeviceContext2.cs
- PassportIdentity.cs
- SafeSystemMetrics.cs
- LoginStatusDesigner.cs
- XmlMtomReader.cs
- DataMember.cs
- AssertSection.cs
- SqlConnectionStringBuilder.cs
- GridErrorDlg.cs