Converting a code from C to C# - C#