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
- CursorConverter.cs
- InternalPermissions.cs
- ObjectManager.cs
- TextEffectResolver.cs
- ArcSegment.cs
- WindowsRebar.cs
- DateTimeFormatInfoScanner.cs
- SqlDataSourceRefreshSchemaForm.cs
- ObjectDataSourceDisposingEventArgs.cs
- WebConfigurationFileMap.cs
- Properties.cs
- DynamicResourceExtension.cs
- PageContent.cs
- PermissionListSet.cs
- ZipIOLocalFileHeader.cs
- DetailsViewRowCollection.cs
- HtmlTableRowCollection.cs
- DatatypeImplementation.cs
- ErrorHandler.cs
- CustomAssemblyResolver.cs
- Membership.cs
- DockAndAnchorLayout.cs
- NamedElement.cs
- MessageQueuePermissionAttribute.cs
- EntityContainer.cs
- XmlComplianceUtil.cs
- UnicastIPAddressInformationCollection.cs
- PathFigureCollection.cs
- ChangePassword.cs
- SubMenuStyleCollection.cs
- CodeIdentifiers.cs
- ProxyWebPartConnectionCollection.cs
- ContainerCodeDomSerializer.cs
- PersonalizationDictionary.cs
- FormatException.cs
- XmlAttribute.cs
- AutomationIdentifierGuids.cs
- CompiledAction.cs
- TypeInfo.cs
- NotifyIcon.cs
- WebPartTransformerAttribute.cs
- ServiceOperationListItemList.cs
- TextTreePropertyUndoUnit.cs
- RegexWriter.cs
- AuthorizationRuleCollection.cs
- ACE.cs
- querybuilder.cs
- AppDomainShutdownMonitor.cs
- HandledMouseEvent.cs
- TextMetrics.cs
- CheckBox.cs
- XmlILConstructAnalyzer.cs
- Bind.cs
- SqlDataSourceSelectingEventArgs.cs
- Set.cs
- ValidationSummary.cs
- xdrvalidator.cs
- DynamicResourceExtension.cs
- PageParser.cs
- FrameworkElement.cs
- PathData.cs
- SecureConversationDriver.cs
- COM2ExtendedBrowsingHandler.cs
- DataViewSetting.cs
- FileUtil.cs
- WebScriptEnablingBehavior.cs
- DataGridViewCellValueEventArgs.cs
- Baml2006Reader.cs
- WebBaseEventKeyComparer.cs
- WSHttpSecurity.cs
- ItemsControl.cs
- IDataContractSurrogate.cs
- VisualBasicSettingsHandler.cs
- WebPartExportVerb.cs
- Attributes.cs
- DesignerActionUIService.cs
- Helpers.cs
- SpeakProgressEventArgs.cs
- WinFormsSpinner.cs
- GcHandle.cs
- Model3D.cs
- FloaterParaClient.cs
- Nullable.cs
- NamespaceImport.cs
- Enum.cs
- ConnectionInterfaceCollection.cs
- NumberAction.cs
- OleDbInfoMessageEvent.cs
- SimpleHandlerBuildProvider.cs
- TypeDelegator.cs
- WebPartTransformerCollection.cs
- ImportRequest.cs
- StaticFileHandler.cs
- TypeExtensions.cs
- ProcessHostServerConfig.cs
- MethodToken.cs
- DataTableCollection.cs
- ExtensionFile.cs
- MinMaxParagraphWidth.cs
- HitTestWithGeometryDrawingContextWalker.cs