Mega Code Archive

 
Categories / VB.Net / Reflection
 

Type IsNested

Imports System Public Class Example     Protected Class NestedProtected     End Class     Public Class NestedPublic     End Class     Public Shared Sub Main()         With GetType(NestedProtected)             Console.WriteLine("Is " & .FullName & " nested? " & .IsNested)         End With         With GetType(NestedPublic)             Console.WriteLine("Is " & .FullName & " nested? " & .IsNested)         End With     End Sub End Class