input: def convert_python_to_csharp(python_code: str) -> str:
      """ Converts a given Python program to a C# program.
      >>> convert_python_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:     csharp_code = ""
      lines = python_code.split('\n')
      indent_level = 0
      for line in lines:
          stripped_line = line.strip()
          if stripped_line.startswith("def "):
              function_name = stripped_line.split('(')[0].split()[-1]
              args = stripped_line.split('(')[1].split(')')[0].split(',')
              csharp_args = ', '.join([arg.split(':')[0].strip() + " int" for arg in args])
              csharp_code += f"public int {function_name}({csharp_args})\n{{\n"
              indent_level += 1
          elif stripped_line.startswith("if "):
              csharp_code += "    " * indent_level + "if (" + stripped_line[3:] + ")\n"
              csharp_code += "    " * indent_level + "{\n"
              indent_level += 1
          elif stripped_line.startswith("else:"):
              indent_level -= 1
              csharp_code += "    " * indent_level + "}\n"
              csharp_code += "    " * indent_level + "else\n"
              csharp_code += "    " * indent_level + "{\n"
              indent_level += 1
          elif stripped_line.startswith("return "):
              csharp_code += "    " * indent_level + "return " + stripped_line[7:] + ";\n"
          elif stripped_line == "":
              continue
          else:
              csharp_code += "    " * indent_level + stripped_line + "\n"
      csharp_code += "    " * (indent_level - 1) + "}\n"
      return csharp_code