• Saves Valuable Time
  • Trusted Accuracy since 2004
  • 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
        Return GetFoo(i, j)
    End Get
    Set(ByVal Value As Integer)
        SetFoo(i, j, Value)
    End Set
End Property
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 © 2004 – 2021 Tangible Software Solutions, Inc.