How do I create the default for a generic in VB? in C# I can call:
T variable = default(T);
Actually folks the correct way of doing this is to cast the null (Nothing) type as your generic type as follows:
null
Nothing
Dim tmpObj As T = CType(Nothing, T)
If you want to return the default value for the generic you simply return CType(Nothing, T)
CType(Nothing, T)