• Saves Valuable Time
  • Trusted Accuracy for 12 Years
  • 15-Day Money-Back Guarantee

C++ Equivalent to VB Parameterized Properties

VB allows defining non-indexer properties which take parameters:

VB C++ (no direct equivalent)
Public Property ParameterizedTest(i As Integer, j As Integer) As Integer
    Get
        Return GetFoo(i, j)
    End Get
    Set(ByVal Value As Integer)
        SetFoo(i, j, Value)
    End Set
End Property
public:
int get_ParameterizedTest(int i, int j)
{
    return GetFoo(i, j);
}
void set_ParameterizedTest(int i, int j, int Value)
{
    SetFoo(i, j, Value);
}


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

Additional resource: VB.NET and C++ Equivalents


Copyright © 1997 – 2017 Tangible Software Solutions Inc.