Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- NamedPermissionSet.cs
- ChannelTokenTypeConverter.cs
- CatalogZoneBase.cs
- EpmSyndicationContentDeSerializer.cs
- SetterBaseCollection.cs
- DATA_BLOB.cs
- BinarySecretKeyIdentifierClause.cs
- Size.cs
- followingquery.cs
- RichTextBox.cs
- PropertyEntry.cs
- HttpCacheVaryByContentEncodings.cs
- GeneralTransformGroup.cs
- SwitchExpression.cs
- WebPartMinimizeVerb.cs
- StringReader.cs
- CursorConverter.cs
- EnumValAlphaComparer.cs
- brushes.cs
- RemotingConfiguration.cs
- EntityDataSourceChangedEventArgs.cs
- NavigationProperty.cs
- CachedPathData.cs
- FilePresentation.cs
- WMIInterop.cs
- BatchParser.cs
- SelectionWordBreaker.cs
- DetailsViewRow.cs
- ListControlBuilder.cs
- BaseUriHelper.cs
- future.cs
- Padding.cs
- PublisherIdentityPermission.cs
- SqlConnectionFactory.cs
- Cursor.cs
- BindingCollectionElement.cs
- SoapParser.cs
- UnSafeCharBuffer.cs
- _AutoWebProxyScriptHelper.cs
- DbLambda.cs
- SynchronizedReadOnlyCollection.cs
- RemotingConfigParser.cs
- KnownBoxes.cs
- TreeNodeConverter.cs
- MenuDesigner.cs
- XpsFilter.cs
- XamlPoint3DCollectionSerializer.cs
- CompiledIdentityConstraint.cs
- GridErrorDlg.cs
- NameScopePropertyAttribute.cs
- MarkerProperties.cs
- ModelTreeManager.cs
- ToolStripItemImageRenderEventArgs.cs
- StatusBarPanelClickEvent.cs
- ListViewGroupItemCollection.cs
- TraceLog.cs
- RemoveStoryboard.cs
- AbstractSvcMapFileLoader.cs
- HttpCachePolicyElement.cs
- ChtmlSelectionListAdapter.cs
- Renderer.cs
- SqlProviderManifest.cs
- RenderDataDrawingContext.cs
- EditingMode.cs
- EdmSchemaAttribute.cs
- MemberRestriction.cs
- SoundPlayerAction.cs
- ToolStripRenderer.cs
- DataException.cs
- XslTransform.cs
- MethodAccessException.cs
- TagMapInfo.cs
- ChannelFactoryRefCache.cs
- CurrentTimeZone.cs
- SchemaImporterExtensionElement.cs
- LinqDataSourceInsertEventArgs.cs
- XmlConverter.cs
- Reference.cs
- OdbcError.cs
- SessionSwitchEventArgs.cs
- codemethodreferenceexpression.cs
- DetailsViewUpdateEventArgs.cs
- SoapConverter.cs
- SHA384.cs
- PropertyRef.cs
- WSSecurityJan2004.cs
- UnauthorizedWebPart.cs
- ExtenderControl.cs
- GeneralTransform3DGroup.cs
- Scalars.cs
- ProcessRequestArgs.cs
- EventTrigger.cs
- TreeViewCancelEvent.cs
- FlowDocumentReader.cs
- PropertyMapper.cs
- PersonalizationDictionary.cs
- PermissionRequestEvidence.cs
- DataRowExtensions.cs
- Pkcs9Attribute.cs
- ScriptComponentDescriptor.cs