[ Team LiB ] Previous Section Next Section

DefaultMemberAttributeCF 1.0, ECMA 1.0, serializable

System.Reflection (mscorlib.dll)sealed class

This attribute allows you to specify the default member of a class. It corresponds to the VB.NET Default keyword. 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 DefaultMemberAttribute(string memberName);
// Public Instance Properties
   public string MemberName{get; }
}

Hierarchy

System.Object System.Attribute DefaultMemberAttribute

Valid On

Class, Struct, Interface

    [ Team LiB ] Previous Section Next Section