input: 
  def convert_to_csharp(python_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:     lines = python_code.split('\n')
      csharp_code = []
      indent_level = 0
      for line in lines:
          if line.strip().startswith('def '):
              func_name = line.split('(')[0].split()[-1]
              args = line.split('(')[1].split(')')[0].split(',')
              csharp_args = ', '.join([f'int {arg.strip()}' for arg in args])
              csharp_code.append(f'public int {func_name.capitalize()}({csharp_args})')
              csharp_code.append('{')
              indent_level += 1
          elif line.strip().startswith('if '):
              csharp_code.append(' ' * 4 * indent_level + 'if (' + line.strip()[3:] + ')')
              csharp_code.append(' ' * 4 * indent_level + '{')
              indent_level += 1
          elif line.strip().startswith('else:'):
              indent_level -= 1
              csharp_code.append(' ' * 4 * indent_level + '}')
              csharp_code.append(' ' * 4 * indent_level + 'else')
              csharp_code.append(' ' * 4 * indent_level + '{')
              indent_level += 1
          elif line.strip().startswith('return '):
              csharp_code.append(' ' * 4 * indent_level + line.strip() + ';')
          elif line.strip() == '':
              continue
          else:
              csharp_code.append(' ' * 4 * indent_level + line.strip())
      while indent_level > 0:
          indent_level -= 1
          csharp_code.append(' ' * 4 * indent_level + '}')
      return '\n'.join(csharp_code)