Upgrading Interfaces with Properties converted to Methods

    This is another feature provided by the VBUC, where some properties are not supported because they have more than one argument, so they must be converted to methods. This issue must be taken into account when interfaces and implementing classes are being converted.

    This only applies to C# code generation.

    Original VB6 code

    Implements AnInterface
    Property Get AnInterface_p1(i As Integer) As Integer
    End Property
    Property Let AnInterface_p1(i As Integer, v As Integer)
    End Property
    

    VBUC resulting C#.NET code

    internal class AClass
        : AnInterface
        {
            public int get_p1(ref  int i)
            {
                return 0;
            }
            public void  set_p1(ref  int i,  int Value)
            {
            }
        }

    Download VBUC Free Trial
    Download VBUC Now

    It's time to eradicate VB6
    ROI of eradicating VB6

    8 Proven Tips for
    Planning a Successful Migration

    8 Tips for migration