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
- TextBoxBase.cs
- TempEnvironment.cs
- IMembershipProvider.cs
- DateTimeFormatInfo.cs
- ProfileInfo.cs
- RootBrowserWindowAutomationPeer.cs
- DrawingContextWalker.cs
- Literal.cs
- GradientStop.cs
- WeakEventManager.cs
- TextureBrush.cs
- PasswordTextContainer.cs
- IDReferencePropertyAttribute.cs
- PersonalizationAdministration.cs
- HitTestResult.cs
- PerformanceCounterPermissionEntry.cs
- QueuePathEditor.cs
- DataListItem.cs
- ObjectDataSourceEventArgs.cs
- MetadataCache.cs
- ProxyWebPart.cs
- DisplayNameAttribute.cs
- HtmlTableCellCollection.cs
- _NegoStream.cs
- StorageComplexTypeMapping.cs
- _NtlmClient.cs
- PeerNearMe.cs
- ColorComboBox.cs
- RawTextInputReport.cs
- XmlQueryCardinality.cs
- PopupRoot.cs
- DbConnectionInternal.cs
- SupportsEventValidationAttribute.cs
- NamespaceEmitter.cs
- DataGridCellsPresenter.cs
- LinearGradientBrush.cs
- SafeNativeMemoryHandle.cs
- HMACSHA384.cs
- MinimizableAttributeTypeConverter.cs
- Enum.cs
- SelectionChangedEventArgs.cs
- EntitySqlQueryCacheEntry.cs
- IndexingContentUnit.cs
- PathGeometry.cs
- ParserOptions.cs
- EditorOptionAttribute.cs
- EDesignUtil.cs
- XmlCollation.cs
- MsmqIntegrationInputChannel.cs
- EndpointConfigContainer.cs
- webeventbuffer.cs
- sqlmetadatafactory.cs
- Color.cs
- DrawListViewSubItemEventArgs.cs
- BitmapSizeOptions.cs
- NameValueFileSectionHandler.cs
- TTSVoice.cs
- RawStylusInputReport.cs
- Queue.cs
- UserPreferenceChangingEventArgs.cs
- CollectionBuilder.cs
- Rectangle.cs
- PackageStore.cs
- ContainerFilterService.cs
- MenuItemBinding.cs
- ImagingCache.cs
- GenerateScriptTypeAttribute.cs
- XhtmlBasicLiteralTextAdapter.cs
- COM2PropertyDescriptor.cs
- TextParagraphCache.cs
- Imaging.cs
- SimpleMailWebEventProvider.cs
- UriTemplateVariableQueryValue.cs
- SelectionRange.cs
- EncoderExceptionFallback.cs
- OrderedDictionary.cs
- CodeExpressionStatement.cs
- ParentQuery.cs
- CheckBoxAutomationPeer.cs
- InputLanguageCollection.cs
- ServiceOperationParameter.cs
- RandomNumberGenerator.cs
- __Error.cs
- InputScope.cs
- VSWCFServiceContractGenerator.cs
- ColorEditor.cs
- UnauthorizedWebPart.cs
- ToolStripDropDown.cs
- clipboard.cs
- TransformDescriptor.cs
- ValidationRule.cs
- TrustManager.cs
- EventLogEntryCollection.cs
- Binding.cs
- CustomLineCap.cs
- ByteStream.cs
- DataColumnPropertyDescriptor.cs
- SafeNativeMethods.cs
- CopyNamespacesAction.cs
- ClientOptions.cs