A converter from Delphi to C#