Name
DefaultMemberAttribute
Synopsis
This attribute allows you to specify the default member of a class. This is often an indexer. C# does not permit the use of default members as part of the language, although other .NET languages (most notably VB.NET) do.
public sealed class DefaultMemberAttribute : Attribute { // Public Constructors public method DefaultMemberAttribute(string memberName); // Public Instance Properties public field string MemberName{get; } }
Hierarchy
System.Object→System.Attribute→DefaultMemberAttribute
Valid On
Class, Struct, Interface
Get C# in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.