- INDEX VB TO NET
- VBUC FEATURES
- LANGUAGE TRANSFORMATIONS
- INTERFACES SUPPORT
- UPGRADING INTERFACES WITH PROPERTIES CONVERTED TO METHODS
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) { } }