March 2002
Intermediate to advanced
864 pages
31h 8m
English
DefaultMemberAttribute
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; } }
System.Object→System.Attribute→DefaultMemberAttribute
Class, Struct, Interface