Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- SafeArrayTypeMismatchException.cs
- AuthenticationSchemesHelper.cs
- VersionPair.cs
- DBConnectionString.cs
- SeparatorAutomationPeer.cs
- COM2PropertyDescriptor.cs
- LassoSelectionBehavior.cs
- SettingsProviderCollection.cs
- ClientApiGenerator.cs
- ExtentJoinTreeNode.cs
- WeakReference.cs
- SubpageParagraph.cs
- ExpressionEditorAttribute.cs
- AssemblyCache.cs
- KeyPullup.cs
- TabletDeviceInfo.cs
- DropDownButton.cs
- SelectionRangeConverter.cs
- FilteredReadOnlyMetadataCollection.cs
- BoolExpression.cs
- UIPropertyMetadata.cs
- ConfigurationProperty.cs
- TypeSystem.cs
- DocumentXmlWriter.cs
- SettingsBase.cs
- UnauthorizedWebPart.cs
- ToRequest.cs
- RowVisual.cs
- FocusChangedEventArgs.cs
- ItemCheckedEvent.cs
- CompilationUtil.cs
- EditorPartChrome.cs
- EpmContentSerializer.cs
- TabControlEvent.cs
- FaultReason.cs
- MatrixConverter.cs
- FilteredSchemaElementLookUpTable.cs
- FrameworkContentElementAutomationPeer.cs
- CodeGen.cs
- TextFormatterHost.cs
- ProgressBar.cs
- SpellerHighlightLayer.cs
- SingleConverter.cs
- ChannelManagerHelpers.cs
- Nodes.cs
- ExtensibleClassFactory.cs
- DataPagerFieldItem.cs
- RelationshipEnd.cs
- SqlWebEventProvider.cs
- PassportIdentity.cs
- ValidationErrorEventArgs.cs
- ProxyWebPartManager.cs
- TextServicesContext.cs
- GridViewEditEventArgs.cs
- indexingfiltermarshaler.cs
- CommandDesigner.cs
- QuadraticBezierSegment.cs
- SafeCryptoHandles.cs
- AutoGeneratedFieldProperties.cs
- TextParaLineResult.cs
- ErrorView.xaml.cs
- oledbconnectionstring.cs
- RowBinding.cs
- SelectedPathEditor.cs
- PrincipalPermissionMode.cs
- WebPartEditorApplyVerb.cs
- TextServicesCompartmentEventSink.cs
- CriticalHandle.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- FamilyCollection.cs
- shaper.cs
- EntityDescriptor.cs
- IntegerFacetDescriptionElement.cs
- X509CertificateCollection.cs
- mda.cs
- SubMenuStyleCollection.cs
- tooltip.cs
- TextFormatterImp.cs
- Shape.cs
- HttpApplicationFactory.cs
- BadImageFormatException.cs
- Message.cs
- CloudCollection.cs
- PageFunction.cs
- ConcurrentStack.cs
- OutputCacheProfile.cs
- SystemUdpStatistics.cs
- XhtmlBasicListAdapter.cs
- PrintPageEvent.cs
- CopyAction.cs
- ConfigurationManager.cs
- ObjectQueryState.cs
- IdentityReference.cs
- TargetConverter.cs
- DataGridItemEventArgs.cs
- WindowsSecurityTokenAuthenticator.cs
- BitFlagsGenerator.cs
- MimeMapping.cs
- ElementsClipboardData.cs
- SafeCryptoHandles.cs