Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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;} } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- JpegBitmapEncoder.cs
- InputScope.cs
- ImpersonateTokenRef.cs
- HMACSHA1.cs
- Identity.cs
- ExeConfigurationFileMap.cs
- SessionStateSection.cs
- QueryStoreStatusRequest.cs
- InvokePattern.cs
- TransformGroup.cs
- PropertyIDSet.cs
- Crypto.cs
- DispatcherTimer.cs
- RelationshipNavigation.cs
- StringUtil.cs
- DesignerVerb.cs
- AppDomainCompilerProxy.cs
- ScalarType.cs
- PrintDocument.cs
- WebServiceErrorEvent.cs
- exports.cs
- IISMapPath.cs
- Item.cs
- ContainerUIElement3D.cs
- UrlAuthFailedErrorFormatter.cs
- Int64Animation.cs
- XmlIgnoreAttribute.cs
- DBConnection.cs
- AnonymousIdentificationSection.cs
- SourceFileBuildProvider.cs
- SqlUserDefinedAggregateAttribute.cs
- ToolBarButton.cs
- CodeCompiler.cs
- LabelAutomationPeer.cs
- ColorContextHelper.cs
- ContractListAdapter.cs
- BitStack.cs
- ExpressionHelper.cs
- DataGridBoundColumn.cs
- CodeTypeParameter.cs
- Size.cs
- TextSelectionHighlightLayer.cs
- ScrollEventArgs.cs
- SynchronizingStream.cs
- NameValueFileSectionHandler.cs
- UnmanagedHandle.cs
- SoapCommonClasses.cs
- XmlSchemaComplexContentRestriction.cs
- ProvidePropertyAttribute.cs
- SqlCacheDependency.cs
- EdmRelationshipRoleAttribute.cs
- SerializationSectionGroup.cs
- Point4DConverter.cs
- TransformPattern.cs
- ParentUndoUnit.cs
- ScrollBarAutomationPeer.cs
- ImageInfo.cs
- MSAAEventDispatcher.cs
- SqlXmlStorage.cs
- ProjectionPlanCompiler.cs
- PersistChildrenAttribute.cs
- SafeNativeMethods.cs
- PermissionSet.cs
- uribuilder.cs
- ItemCheckedEvent.cs
- Compiler.cs
- Codec.cs
- LoginView.cs
- XmlChildEnumerator.cs
- __ConsoleStream.cs
- WaitForChangedResult.cs
- HitTestWithGeometryDrawingContextWalker.cs
- IImplicitResourceProvider.cs
- CompareValidator.cs
- NamedPermissionSet.cs
- SecurityTokenTypes.cs
- UnionExpr.cs
- DataGridViewSelectedCellCollection.cs
- dataprotectionpermissionattribute.cs
- CheckPair.cs
- LookupNode.cs
- MenuItemBindingCollection.cs
- AbsoluteQuery.cs
- HttpStreamFormatter.cs
- CustomAttributeSerializer.cs
- DataGridViewCellEventArgs.cs
- X509ChainElement.cs
- UriParserTemplates.cs
- Timer.cs
- _FixedSizeReader.cs
- DataGridCellClipboardEventArgs.cs
- IList.cs
- HtmlProps.cs
- OuterGlowBitmapEffect.cs
- TypeValidationEventArgs.cs
- CalendarDay.cs
- DataServiceStreamResponse.cs
- ConfigurationSectionCollection.cs
- SecurityHelper.cs
- ClonableStack.cs