input: Write a function to convert a given Python program to a C# program. The function should take a Python function as input and return the corresponding C# function. If the input Python function is empty, return an empty string.
  assert 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}"
  assert convert_to_csharp("def add(x, y):\n    return x + y") == "public int Add(int x, int y)\n{\n    return x + y;\n}"
  assert convert_to_csharp("def subtract(x, y):\n    return x - y") == "public int Subtract(int x, int y)\n{\n    return x - y;\n}"
  assert convert_to_csharp("") == ""
output: def convert_to_csharp(python_func):
      if not python_func:
          return ""
      lines = python_func.split('\n')
      func_name = lines[0].split('(')[0].split(' ')[1]
      params = lines[0].split('(')[1].split(')')[0].split(', ')
      csharp_params = ', '.join([f"int {param}" for param in params])
      csharp_func = f"public int {func_name.capitalize()}({csharp_params})\n{{\n"
      for line in lines[1:]:
          if line.strip().startswith('return'):
              csharp_func += f"    {line.strip()};\n"
          elif line.strip().startswith('if'):
              csharp_func += f"    {line.strip()}\n    {{\n"
          elif line.strip().startswith('else'):
              csharp_func += f"    }}\n    {line.strip()}\n    {{\n"
          elif line.strip() == '':
              csharp_func += "    }\n"
      csharp_func += "}"
      return csharp_func