DefaultMemberAttribute

DefaultMemberAttribute CF 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



C# in a Nutshell
C # in a Nutshell, Second Edition
ISBN: 0596005261
EAN: 2147483647
Year: 2005
Pages: 963

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net