input: Write a function to convert a given Python program to a C# program. The function should take a string representation of the Python code and return a string representation of the equivalent C# code.
  
  Example Input:
  def power(x, y):
      if y == 0:
          return 1
      else:
          return x * power(x, y - 1)
  
  Example Output:
  public int Power(int x, int y)
  {
      if (y == 0)
      {
          return 1;
      }
      else
      {
          return x * Power(x, y - 1);
      }
  }
  
  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(a, b):\n    return a + b") == "public int Add(int a, int b)\n{\n    return a + b;\n}"
  
  assert convert_to_csharp("def empty_func():\n    pass") == "public void EmptyFunc()\n{\n}"
  
  assert convert_to_csharp("") == ""
output: 
  def convert_to_csharp(python_code):
      if not python_code:
          return ""
      
      lines = python_code.split('\n')
      csharp_code = []
      
      for line in lines:
          line = line.strip()
          if line.startswith("def "):
              func_name, params = line[4:].split('(')
              func_name = func_name.capitalize()
              params = params.split(')')[0]
              param_list = params.split(', ')
              csharp_params = ', '.join([f"int {p}" for p in param_list])
              return_type = "int" if "return" in python_code else "void"
              csharp_code.append(f"public {return_type} {func_name}({csharp_params})")
              csharp_code.append("{")
          elif line.startswith("return "):
              csharp_code.append(f"    return {line[7:]};")
          elif line == "pass":
              csharp_code.append("}")
          else:
              csharp_code.append(f"    {line}")
      
      if csharp_code[-1] != "}":
          csharp_code.append("}")
      
      return '\n'.join(csharp_code)
  