Mega Code Archive
Type IsNestedFamily Property tells whether the Type is nested and visible only within its own family
Class MyClassA
Protected Class MyClassB
End Class
End Class
Class MyTestClass
Inherits MyClassA
Public Shared Sub Main()
Dim myTypeB As Type = GetType(MyClassA.MyClassB)
Console.WriteLine(myTypeB.IsNestedFamily.ToString())
End Sub
End Class