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

VB Equivalent to C++ Type Discovery

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:

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 – 2021 Tangible Software Solutions, Inc.