• Saves Valuable Time
  • Trusted Accuracy since 2004
  • 15-Day Money-Back Guarantee

VB Equivalent to C++ Type Discovery

C++ VB.NET
bool b = dynamic_cast<Foo*>(f) != nullptr; Dim b As Boolean = TypeOf f Is Foo

C++ 'typeid' is only equivalent to VB 'GetType' for template type parameters:

C++ VB.NET
template<typename T>
void method()
{
    std::type_info t = typeid(T);
}
Private Sub method(Of T)()
    Dim x As Type = GetType(T)
End Sub


Use C++ to VB Converter to convert from C++ to VB.     

Additional resource: VB.NET and C++ Equivalents


Copyright © 2004 – 2019 Tangible Software Solutions, Inc.