When you Debug.Print some object types in the Visual Studio 2010 debugger, the output includes a backtick. What does the backtick mean?
Dim myList as List = a List
Debug.Print(myList.GetType().ToString()
Output in Immediate Window debugger:
System.Collections.Generic.List`1[System.String]
It’s indicating the number of items in the subsequent array. The array contains the generic types.
List(Of String)has one generic type, namely string.Try creating an
SomeClass(Of T as String, U as Integer)and seeing what you get…Output:
Two types: String, Int
Because of the structure, it’s able to represent nested generic types in a tree-like fashion…
outputs
Two root types, one of which is generic: [String, Int], Int