Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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;} } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- userdatakeys.cs
- SchemaImporterExtension.cs
- ColumnTypeConverter.cs
- MailAddress.cs
- SqlCrossApplyToCrossJoin.cs
- QuaternionRotation3D.cs
- EncryptedKey.cs
- _BasicClient.cs
- CookielessHelper.cs
- _ConnectionGroup.cs
- ObjectDataSourceDesigner.cs
- COM2ExtendedTypeConverter.cs
- HttpWebRequest.cs
- ACE.cs
- FontFaceLayoutInfo.cs
- CompilerTypeWithParams.cs
- RelationshipNavigation.cs
- ObjectListCommandsPage.cs
- XmlNodeChangedEventArgs.cs
- ConfigXmlSignificantWhitespace.cs
- Enum.cs
- XmlSchemaSimpleTypeUnion.cs
- WebPartConnectionsConfigureVerb.cs
- ScriptMethodAttribute.cs
- TransactionScope.cs
- TreeNodeEventArgs.cs
- Graph.cs
- RegexCapture.cs
- XamlContextStack.cs
- ValidationService.cs
- DiagnosticsConfiguration.cs
- FontEmbeddingManager.cs
- PageCodeDomTreeGenerator.cs
- DataGridViewCellStyle.cs
- AttachedAnnotation.cs
- NetworkStream.cs
- ColorConvertedBitmapExtension.cs
- ContextMenuStrip.cs
- GradientBrush.cs
- SafeFileHandle.cs
- SByteStorage.cs
- SortableBindingList.cs
- _LoggingObject.cs
- DesignerActionVerbList.cs
- TextDecoration.cs
- DrawingContextWalker.cs
- SqlDataSourceWizardForm.cs
- Byte.cs
- WindowsPen.cs
- BamlMapTable.cs
- basenumberconverter.cs
- DateTimeHelper.cs
- HttpPostedFile.cs
- SafeHandle.cs
- ResourceKey.cs
- _ContextAwareResult.cs
- ObjectDisposedException.cs
- ThaiBuddhistCalendar.cs
- LineGeometry.cs
- DbProviderFactoriesConfigurationHandler.cs
- TransactionContextManager.cs
- ErrorsHelper.cs
- DefaultAsyncDataDispatcher.cs
- ListBindingConverter.cs
- CommonDialog.cs
- TheQuery.cs
- WinFormsUtils.cs
- Line.cs
- UIElement.cs
- DrawingContextWalker.cs
- PiiTraceSource.cs
- SafeNativeMethods.cs
- WebPartConnectionCollection.cs
- UriSectionReader.cs
- XmlReader.cs
- JsonReader.cs
- TreeWalker.cs
- GridItemCollection.cs
- ListParagraph.cs
- ClientTargetSection.cs
- MenuItemCollection.cs
- ClientFormsIdentity.cs
- ButtonField.cs
- RegexStringValidator.cs
- ClientRuntimeConfig.cs
- TagNameToTypeMapper.cs
- Array.cs
- ThrowHelper.cs
- COM2PictureConverter.cs
- ItemCollection.cs
- RegionInfo.cs
- StylusPointProperty.cs
- AuthenticationServiceManager.cs
- TableChangeProcessor.cs
- M3DUtil.cs
- XmlNamedNodeMap.cs
- ToolBarPanel.cs
- TemplateControlCodeDomTreeGenerator.cs
- MissingManifestResourceException.cs
- DeviceSpecificChoice.cs