I need a function that will convert a type to a string, for example:
Dim foo as Dictionary(of Dictionary(of Integer, String), Integer)
Debug.WriteLine(TypeToString(GetType(foo)))
In the debug output, I’d expect to see something equivalent to:
Dictionary(of Dictionary(of Integer, String), Integer)
Here’s some extension methods I use to do what you ask, but it’s in C# and generate C#.
You can either keep it in C#, but change the output to VB.Net or do a full conversion to VB.Net if you like.