Imports System
Imports System.Reflection
Public Class Class1
Protected t As Type
Public Sub Method1()
If t.Attributes And TypeAttributes.ClassSemanticsMask = TypeAttributes.Interface Then
Console.WriteLine("t is an interface.")
End If
If t.Attributes And TypeAttributes.Public <> 0 Then
Console.WriteLine("t is public.")
End If
End Sub 'Method1
Public Shared Sub Main()
End Sub 'Method1
End Class 'Class1