Home > Articles > Programming > Windows Programming

  • Print
  • + Share This
From the author of

Inheriting from System.Attribute

Attributes inherit from System.Attribute. No further elaboration is necessary, other than to point out that true inheritance is new to Visual Basic .NET. Listing 3 shows the updated code and the proper way to express inheritance in Visual Basic .NET.

Listing 3—Inheriting from System.Attribute

<AttributeUsage(AttributeTargets.Property, _
 Inherited:=True, AllowMultiple:=True)> _
Public Class ControlDesignerAttribute
 Inherits System.Attribute

End Class
  • + Share This
  • 🔖 Save To Your Account