input: Write a function to convert a given Python program to a C# program. The function should take a string representation of a Python function and return a string representation of the equivalent C# function. If the input string is empty, return an empty string.
  assert 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}"
  assert convert_python_to_csharp(
      "def add(a, b):\n    return a + b"
  )==
  "public int Add(int a, int b)\n{\n    return a + b;\n}"
  assert convert_python_to_csharp(
      "def empty():\n    pass"
  )==
  "public void Empty()\n{\n    // Do nothing\n}"
  assert convert_python_to_csharp('')==''
output: def convert_python_to_csharp(python_code):
      if not python_code:
          return ""
      
      lines = python_code.split('\n')
      if lines[0].startswith("def "):
          func_name = lines[0][4:lines[0].index('(')]
          params = lines[0][lines[0].index('('):lines[0].index(')')+1]
          param_list = params[1:-1].split(', ')
          csharp_params = ', '.join([f"int {p}" for p in param_list])
          csharp_func = f"public int {func_name.capitalize()}({csharp_params})\n{{\n"
      else:
          return ""
      
      for line in lines[1:]:
          if line.strip() == "pass":
              csharp_func += "    // Do nothing\n"
          elif 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 += "    }\n    else\n    {\n"
          elif line.strip() == "":
              continue
          else:
              csharp_func += f"    {line.strip()}\n"
      
      csharp_func += "}"
      return csharp_func