Imports System
Imports System.Reflection
Imports Microsoft.VisualBasic
Public MustInherit Class MyMustInheritClass
End Class
Public Class [MyClass]
End Class
Public Class Type_IsMustInherit
Public Shared Sub Main()
Try
If GetType([MyMustInheritClass]).IsAbstract = True Then
Console.WriteLine("MyMustInheritClass is {0}", "a MustInherit class.")
Else
Console.WriteLine("MyMustInheritClass is {0}", "not a MustInherit class.")
End If
Catch e As Exception
Console.WriteLine("Exception: {0} " + ControlChars.Cr, e.Message.ToString())
End Try
End Sub
End Class