C# to Pascal