Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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;} } } } // 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; [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;} } } } // 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
- OleDbConnection.cs
- ApplicationFileCodeDomTreeGenerator.cs
- MailWebEventProvider.cs
- ToolStripDropDownItem.cs
- JavaScriptString.cs
- TabPageDesigner.cs
- XmlSchemaNotation.cs
- ZipPackagePart.cs
- DragStartedEventArgs.cs
- DtrList.cs
- ResponseStream.cs
- XmlNamespaceMapping.cs
- BindingContext.cs
- SafeRegistryHandle.cs
- SHA384CryptoServiceProvider.cs
- BinarySecretKeyIdentifierClause.cs
- InternalConfigHost.cs
- ProgressBar.cs
- CompiledRegexRunnerFactory.cs
- SudsParser.cs
- CaretElement.cs
- TypeResolvingOptions.cs
- UnsafeNativeMethods.cs
- StorageInfo.cs
- TextParaClient.cs
- DSASignatureFormatter.cs
- ListContractAdapter.cs
- AssemblyHash.cs
- Transactions.cs
- ResourcesBuildProvider.cs
- PermissionSetEnumerator.cs
- VersionedStream.cs
- UnsafeCollabNativeMethods.cs
- LocationSectionRecord.cs
- RequestStatusBarUpdateEventArgs.cs
- RequestCacheEntry.cs
- XmlEncodedRawTextWriter.cs
- GrammarBuilder.cs
- SpellerInterop.cs
- SafeProcessHandle.cs
- FieldToken.cs
- ProjectionPruner.cs
- Subtree.cs
- StyleConverter.cs
- WindowVisualStateTracker.cs
- TreeNodeStyleCollection.cs
- TextClipboardData.cs
- ToolboxDataAttribute.cs
- HttpProfileBase.cs
- FixedSOMTableRow.cs
- x509utils.cs
- ParserOptions.cs
- DrawingAttributes.cs
- SiteOfOriginPart.cs
- ExeContext.cs
- PropertyValidationContext.cs
- odbcmetadatacollectionnames.cs
- MemberProjectionIndex.cs
- PaintValueEventArgs.cs
- DCSafeHandle.cs
- TextDecoration.cs
- SessionStateContainer.cs
- DataPagerCommandEventArgs.cs
- Label.cs
- ToolBarDesigner.cs
- ConnectionStringSettingsCollection.cs
- EditingCommands.cs
- WebBrowser.cs
- Pointer.cs
- MultiTrigger.cs
- DragSelectionMessageFilter.cs
- SecUtil.cs
- OdbcConnectionOpen.cs
- FormViewPageEventArgs.cs
- ManagementOptions.cs
- DateTimeEditor.cs
- UnmanagedMarshal.cs
- ItemCollection.cs
- _Semaphore.cs
- ActivityStateRecord.cs
- TrustDriver.cs
- NotCondition.cs
- ListControlStringCollectionEditor.cs
- ResourceDictionaryCollection.cs
- ConditionalExpression.cs
- KeyedQueue.cs
- SmtpClient.cs
- WriteableBitmap.cs
- DataGridViewRow.cs
- XmlSchemaFacet.cs
- FunctionUpdateCommand.cs
- EntityModelBuildProvider.cs
- WindowsToolbarAsMenu.cs
- Stopwatch.cs
- WebSysDescriptionAttribute.cs
- TextElementEnumerator.cs
- TextElementAutomationPeer.cs
- EngineSite.cs
- CmsUtils.cs
- DBCSCodePageEncoding.cs