Conversion of Delphi to C#

Thanks @andyhill. I’ll look at that as an option to propose to the team.
Cheers