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
- ImageFormatConverter.cs
- ClientProxyGenerator.cs
- ModelPropertyImpl.cs
- UpDownEvent.cs
- ColorConverter.cs
- WindowAutomationPeer.cs
- DefaultCommandExtensionCallback.cs
- AnnotationResource.cs
- FileInfo.cs
- RowCache.cs
- uribuilder.cs
- EditingCommands.cs
- Ticks.cs
- MessageHeaderDescriptionCollection.cs
- SapiRecoInterop.cs
- HiddenFieldPageStatePersister.cs
- PlainXmlDeserializer.cs
- Switch.cs
- CodeTypeReferenceExpression.cs
- GcHandle.cs
- ClientSession.cs
- SiteMapPath.cs
- XmlSchemaProviderAttribute.cs
- PassportAuthenticationEventArgs.cs
- RtfFormatStack.cs
- RowBinding.cs
- ToolBarButtonClickEvent.cs
- AdRotatorDesigner.cs
- GridSplitter.cs
- OrthographicCamera.cs
- _AcceptOverlappedAsyncResult.cs
- BrushMappingModeValidation.cs
- HttpHandlersInstallComponent.cs
- RuleSetCollection.cs
- Cursor.cs
- Span.cs
- ChannelDispatcherBase.cs
- ExeContext.cs
- DispatchWrapper.cs
- OleTxTransactionInfo.cs
- RenderDataDrawingContext.cs
- Substitution.cs
- AddInController.cs
- JoinCqlBlock.cs
- SequenceRangeCollection.cs
- BindingExpression.cs
- ControlFilterExpression.cs
- RegexCompiler.cs
- SpotLight.cs
- Condition.cs
- _LocalDataStore.cs
- Propagator.ExtentPlaceholderCreator.cs
- NullReferenceException.cs
- NativeMethods.cs
- DictionaryManager.cs
- VerticalAlignConverter.cs
- ExpandSegment.cs
- TcpAppDomainProtocolHandler.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- CodeTypeReference.cs
- TypeSystemHelpers.cs
- ThemeInfoAttribute.cs
- BinaryObjectWriter.cs
- FormClosedEvent.cs
- CustomAttributeFormatException.cs
- WindowsStatic.cs
- ClientCultureInfo.cs
- DataSourceCache.cs
- _NetworkingPerfCounters.cs
- LookupBindingPropertiesAttribute.cs
- ToolStripSplitButton.cs
- UnionExpr.cs
- CollectionContainer.cs
- Selector.cs
- WinFormsSpinner.cs
- ObjectView.cs
- Byte.cs
- VectorCollectionConverter.cs
- ToolStripPanelCell.cs
- AbandonedMutexException.cs
- RankException.cs
- EnumDataContract.cs
- IResourceProvider.cs
- TextFormatter.cs
- TypeDescriptor.cs
- ZipIOFileItemStream.cs
- CachedTypeface.cs
- SafeHandles.cs
- FirewallWrapper.cs
- Style.cs
- SqlInternalConnectionTds.cs
- EventLogPermissionEntry.cs
- PatternMatcher.cs
- EventMappingSettingsCollection.cs
- XmlSchemaParticle.cs
- ImmComposition.cs
- OracleInternalConnection.cs
- ObjRef.cs
- StructuredTypeEmitter.cs
- WebPartAuthorizationEventArgs.cs