input: def convert_to_csharp(py_code: str) -> str:
      """ Convert a given Python program to a C# program. 
      >>> convert_to_csharp("def power(x, y):\\n    if y == 0:\\n        return 1\\n    else:\\n        return x * power(x, y - 1)")
      'public int Power(int x, int y)\\n{\\n    if (y == 0)\\n    {\\n        return 1;\\n    }\\n    else\\n    {\\n        return x * Power(x, y - 1);\\n    }\\n}'
      """
      
output:     py_code = py_code.replace("def ", "public ").replace(":", "").replace("    ", "    ").replace("return ", "return ").replace("if ", "if (").replace("else:", "else").replace("\\n", "\\n").replace("):", ");")
      py_code = py_code.replace("(", "(").replace(")", ")").replace(":", ";")
      py_code = py_code.replace("int ", "int ").replace("float ", "float ").replace("str ", "string ").replace("bool ", "bool ")
      py_code = py_code.replace("True", "true").replace("False", "false")
      py_code = py_code.replace("None", "null")
      py_code = py_code.replace("print(", "Console.WriteLine(")
      py_code = py_code.replace("input(", "Console.ReadLine(")
      py_code = py_code.replace("len(", "Length")
      py_code = py_code.replace("range(", "Range(")
      py_code = py_code.replace("for ", "for (").replace(" in ", " in ").replace("):", ")")
      py_code = py_code.replace("while ", "while (").replace("):", ")")
      py_code = py_code.replace("break", "break;").replace("continue", "continue;")
      py_code = py_code.replace("elif ", "else if (").replace("):", ")")
      py_code = py_code.replace("try:", "try").replace("except ", "catch (").replace("):", ")")
      py_code = py_code.replace("finally:", "finally").replace("):", ")")
      py_code = py_code.replace("raise ", "throw new ").replace("Exception(", "Exception(")
      py_code = py_code.replace("assert ", "Debug.Assert(").replace("):", ")")
      py_code = py_code.replace("import ", "using ").replace("from ", "using ").replace(" import ", " import ")
      py_code = py_code.replace("class ", "class ").replace("):", ")")
      py_code = py_code.replace("self.", "this.").replace("__init__", "constructor")
      py_code = py_code.replace("super().", "base.").replace("__str__", "ToString")
      py_code = py_code.replace("__repr__", "ToString")
      py_code = py_code.replace("__eq__", "Equals")
      py_code = py_code.replace("__hash__", "GetHashCode")
      py_code = py_code.replace("__lt__", "CompareTo")
      py_code = py_code.replace("__le__", "CompareTo")
      py_code = py_code.replace("__gt__", "CompareTo")
      py_code = py_code.replace("__ge__", "CompareTo")
      py_code = py_code.replace("__ne__", "CompareTo")
      py_code = py_code.replace("__add__", "operator+")
      py_code = py_code.replace("__sub__", "operator-")
      py_code = py_code.replace("__mul__", "operator*")
      py_code = py_code.replace("__truediv__", "operator/")
      py_code = py_code.replace("__floordiv__", "operator//")
      py_code = py_code.replace("__mod__", "operator%")
      py_code = py_code.replace("__pow__", "operator^")
      py_code = py_code.replace("__and__", "operator&")
      py_code = py_code.replace("__or__", "operator|")
      py_code = py_code.replace("__xor__", "operator^")
      py_code = py_code.replace("__lshift__", "operator<<")
      py_code = py_code.replace("__rshift__", "operator>>")
      py_code = py_code.replace("__invert__", "operator~")
      py_code = py_code.replace("__neg__", "operator-")
      py_code = py_code.replace("__pos__", "operator+")
      py_code = py_code.replace("__abs__", "Math.Abs")
      py_code = py_code.replace("__round__", "Math.Round")
      py_code = py_code.replace("__floor__", "Math.Floor")
      py_code = py_code.replace("__ceil__", "Math.Ceiling")
      py_code = py_code.replace("__trunc__", "Math.Truncate")
      py_code = py_code.replace("__int__", "Convert.ToInt32")
      py_code = py_code.replace("__float__", "Convert.ToDouble")
      py_code = py_code.replace("__complex__", "Convert.ToDouble")
      py_code = py_code.replace("__str__", "Convert.ToString")
      py_code = py_code.replace("__repr__", "Convert.ToString")
      py_code = py_code.replace("__bytes__", "Convert.ToByte")
      py_code = py_code.replace("__bool__", "Convert.ToBoolean")
      py_code = py_code.replace("__len__", "Length")
      py_code = py_code.replace("__getitem__", "this[]")
      py_code = py_code.replace("__setitem__", "this[]")
      py_code = py_code.replace("__delitem__", "this[]")
      py_code = py_code.replace("__contains__", "Contains")
      py_code = py_code.replace("__iter__", "GetEnumerator")
      py_code = py_code.replace("__next__", "MoveNext")
      py_code = py_code.replace("__reversed__", "Reverse")
      py_code = py_code.replace("__index__", "this[]")
      py_code = py_code.replace("__enter__", "Enter")
      py_code = py_code.replace("__exit__", "Exit")
      py_code = py_code.replace("__await__", "GetAwaiter")
      py_code = py_code.replace("__aiter__", "GetAsyncEnumerator")
      py_code = py_code.replace("__anext__", "MoveNextAsync")
      py_code = py_code.replace("__aenter__", "EnterAsync")
      py_code = py_code.replace("__aexit__", "ExitAsync")
      py_code = py_code.replace("__call__", "Invoke")
      py_code = py_code.replace("__new__", "new")
      py_code = py_code.replace("__del__", "Dispose")
      py_code = py_code.replace("__sizeof__", "SizeOf")
      py_code = py_code.replace("__format__", "Format")
      py_code = py_code.replace("__dir__", "GetMembers")
      py_code = py_code.replace("__sizeof__", "SizeOf")
      py_code = py_code.replace("__format__", "Format")
      py_code = py_code.replace("__dir__", "GetMembers")
      py_code = py_code.replace("__sizeof__", "SizeOf")
      py_code = py_code.replace("__format__", "Format")
      py_code = py_code.replace("__dir__", "GetMembers")
      py_code = py_code.replace("__sizeof__", "SizeOf")
      py_code = py_code.replace("__format__", "Format")
      py_code = py_code.replace("__dir__", "GetMembers")
      py_code = py_code.replace("__sizeof__", "SizeOf")
      py_code = py_code.replace("__format__", "Format")
      py_code = py_code.replace("__dir__", "GetMembers")
      py_code = py_code.replace("__sizeof__", "SizeOf")
      py_code = py_code.replace("__format__", "Format")
      py_code = py_code.replace("__dir__", "GetMembers")
      py_code = py_code.replace("__sizeof__", "SizeOf")
      py_code = py_code.replace("__format__", "Format")
      py_code = py_code.replace("__dir__", "GetMembers")
      py_code = py_code.replace("__sizeof__", "SizeOf")
      py_code = py_code.replace("__format__", "Format")
      py_code = py_code.replace("__dir__", "GetMembers")
      py_code = py_code.replace("__sizeof__", "SizeOf")
      py_code = py_code.replace("__format__", "Format")
      py_code = py_code.replace("__dir__", "GetMembers")
      py_code = py_code.replace("__sizeof__", "SizeOf")
      py_code = py_code.replace("__format__", "Format")
      py_code = py_code.replace("__dir__", "GetMembers")
      py_code = py_code.replace("__sizeof__", "SizeOf")
      py_code = py_code.replace("__format__", "Format")
      py_code = py_code.replace("__dir__", "GetMembers")
      py_code = py_code.replace("__sizeof__", "SizeOf")
      py_code = py_code.replace("__format__", "Format")
      py_code = py_code.replace("__dir__", "GetMembers")
      py_code = py_code.replace("__sizeof__", "SizeOf")
      py_code = py_code.replace("__format__", "Format")
      py_code = py_code.replace("__dir__", "GetMembers")
      py_code = py_code.replace("__sizeof__", "SizeOf")
      py_code = py_code.replace("__format__", "Format")
      py_code = py_code.replace("__dir__", "GetMembers")
      py_code = py_code.replace("__sizeof__", "SizeOf")
      py_code = py_code.replace("__format__", "Format")
      py_code = py_code.replace("__dir__", "GetMembers")
      py_code = py_code.replace("__sizeof__", "SizeOf")
      py_code = py_code.replace("__format__", "Format")
      py_code = py_code.replace("__dir__", "GetMembers")
      py_code = py_code.replace("__sizeof__", "SizeOf")
      py_code = py_code.replace("__format__", "Format")
      py_code = py_code.replace("__dir__", "GetMembers")
      py_code = py_code.replace("__sizeof__", "SizeOf")
      py_code = py_code.replace("__format__", "Format")
      py_code = py_code.replace("__dir__", "GetMembers")
      py_code = py_code.replace("__sizeof__", "SizeOf")
      py_code = py_code.replace("__format__", "Format")
      py_code = py_code.replace("__dir__", "GetMembers")
      py_code = py_code.replace("__sizeof__", "SizeOf")
      py_code = py_code.replace("__format__", "Format")
      py_code = py_code.replace("__dir__", "GetMembers")
      py_code = py_code.replace("__sizeof__", "SizeOf")
      py_code = py_code.replace("__format__", "Format")
      py_code = py_code.replace("__dir__", "GetMembers")
      py_code = py_code.replace("__sizeof__", "SizeOf")
      py_code = py_code.replace("__format__", "Format")
      py_code = py_code.replace("__dir__", "GetMembers")
      py_code = py_code.replace("__sizeof__", "SizeOf")
      py_code = py_code.replace("__format__", "Format")
      py_code = py_code.replace("__dir__", "GetMembers")
      py_code = py_code.replace("__sizeof__", "SizeOf")
      py_code = py_code.replace("__format__", "Format")
      py_code = py_code.replace("__dir__", "GetMembers")
      py_code = py_code.replace("__sizeof__", "SizeOf")
      py_code = py_code.replace("__format__", "Format")
      py_code = py_code.replace("__dir__", "GetMembers")
      py_code = py_code.replace("__sizeof__", "SizeOf")
      py_code = py_code.replace("__format__", "Format")
      py_code = py_code.replace("__dir__", "GetMembers")
      py_code = py_code.replace("__sizeof__", "SizeOf")
      py_code = py_code.replace("__format__", "Format")
      py_code = py_code.replace("__dir__", "GetMembers")
      py_code = py_code.replace("__sizeof__", "SizeOf")
      py_code = py_code.replace("__format__", "Format")
      py_code = py_code.replace("__dir__", "GetMembers")
      py_code = py_code.replace("__sizeof__", "SizeOf")
      py_code = py_code.replace("__format__", "Format")
      py_code = py_code.replace("__dir__", "GetMembers")
      py_code = py_code.replace("__sizeof__", "SizeOf")
      py_code = py_code.replace("__format__", "Format")
      py_code = py_code.replace("__dir__", "GetMembers")
      py_code = py_code.replace("__sizeof__", "SizeOf")
      py_code = py_code.replace("__format__", "Format")
      py_code = py_code.replace("__dir__", "GetMembers")
      py_code = py_code.replace("__sizeof__", "SizeOf")
      py_code = py_code.replace("__format__", "Format")
      py_code = py_code.replace("__dir__", "GetMembers")
      py_code = py_code.replace("__sizeof__", "SizeOf")
      py_code = py_code.replace("__format__", "Format")
      py_code = py_code.replace("__dir__", "GetMembers")
      py_code = py_code.replace("__sizeof__", "SizeOf")
      py_code = py_code.replace("__format__", "Format")
      py_code = py_code.replace("__dir__", "GetMembers")
      py_code = py_code.replace("__sizeof__", "SizeOf")
      py_code = py_code.replace("__format__", "Format")
      py_code = py_code.replace("__dir__", "GetMembers")
      py_code = py_code.replace("__sizeof__", "SizeOf")
      py_code = py_code.replace("__format__", "Format")
      py_code = py_code.replace("__dir__", "GetMembers")
      py_code = py_code.replace("__sizeof__", "SizeOf")
      py_code = py_code.replace("__format__", "Format")
      py_code = py_code.replace("__dir__", "GetMembers")
      py_code = py_code.replace("__sizeof__", "SizeOf")
      py_code = py_code.replace("__format__", "Format")
      py_code = py_code.replace("__dir__", "GetMembers")
      py_code = py_code.replace("__sizeof__", "SizeOf")
      py_code = py_code.replace("__format__", "Format")
      py_code = py_code.replace("__dir__", "GetMembers")
      py_code = py_code.replace("__sizeof__", "SizeOf")
      py_code = py_code.replace("__format__", "Format")
      py_code = py_code.replace("__dir__", "GetMembers")
      py_code = py_code.replace("__sizeof__", "SizeOf")
      py_code = py_code.replace("__format__", "Format")
      py_code = py_code.replace("__dir__", "GetMembers")
      py_