Converted all Java source code to C#