The prototype reads file references from a .dproj and matches them to the supplied sources. It translates Integer functions with if/else into C# using fixed rules.
Test case: order with multiple lines
The converter generates TOrderInventory from Auftragsreservierung.pas. One loop checks every line. A second loop updates stock once the whole order can be fulfilled. The example keeps one active order in memory at a time.
- Starting stock for A/B: 10/3
- Request for 6/4 rejected: stock stays at 10/3.
- Request for 6/2 accepted: 4/1 available, 6/2 reserved.
- After cancellation: 10/3 available, zero reserved.
Test case: inventory reservation
The converter reads Bestandsreservierung.pas and generates the C# class TInventory. Starting with 10 units, the test reserves 6, rejects a request for 5 more, and releases 2. The exported class ends with 6 available and 4 reserved.
Verified .NET 8 export
The ZIP contains DelphiModernisierung.csproj, four generated .cs files and the project report. dotnet build finished with zero warnings and zero errors. The report explains why Messwertanalyse.pas, which takes an array parameter, was skipped.