On Sep 27, 9:21 am, Joh <meanmachine...@hotmail.comwrote:
Is there a way to dynamically list all System types that exist in
VB.Net? I.e. I'd like to list all types in the System namespace
programatically.
I'm no expert on reflection, but I think you can load the System.dll
and use assembly.GetTypes to retrieve them. Here's a simple Console
App to demonstrate:
//////////////////////
Imports System.Reflection
Module Module1
Sub Main()
Dim assembly As Assembly = assembly.LoadFile("C:\Windows
\Microsoft.NET\Framework\v2.0.50727\System.dll")
For Each t As Type In assembly.GetTypes()
Console.WriteLine(t.ToString())
Next
Console.Read()
End Sub
End Module
//////////////////////
Thanks,
Seth Rowe