2 REM ExpectedError: BC30002
3 REM ErrorMessage: Type 'C2' is not defined.
7 <AttributeUsage(AttributeTargets
.All
, AllowMultiple
:=True, Inherited
:=True)> _
8 Public Class AuthorAttribute
11 Public Sub New(ByVal Name
As String)
18 <Author("Robin Cook"),Author("Authur Haily")> _
26 Dim type As Type=GetType(C2
)
27 Dim arr
As Object()=type.GetCustomAttributes(GetType(AuthorAttribute
),True)
29 Console
.WriteLine("Interface has no attributes")
31 Throw
New Exception("AttributesC:Failed-Interfaces should not inherit attributes")