VB to .NET

Upgrading Interfaces with Properties converted to Methods

This is another feature provided by the VB6 AI Migrator, 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


VB6 AI Migrator 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)
        {
        }
    }

 

Talk To An Engineer