input: Write a function to convert a given Python program to a C# program. The function should take a string representing the Python code and return a string representing the equivalent C# code. 
  assert csharp_converter("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 csharp_converter("") == @""
  assert csharp_converter("def add(a, b):\n    return a + b") == @"public int Add(int a, int b)\n{\n    return a + b;\n}"
output: def csharp_converter(python_code):
      if not python_code:
          return ""
      
      lines = python_code.split('\n')
      csharp_lines = []
      
      for line in lines:
          if line.startswith("def "):
              func_name, params = line[4:].split('(')
              params = params.rstrip(':')
              csharp_lines.append(f"public int {func_name.capitalize()}({params})")
              csharp_lines.append("{")
          elif line.startswith("    return "):
              csharp_lines.append(f"    return {line[11:]};")
          elif line.startswith("    if "):
              csharp_lines.append(f"    if ({line[7:].rstrip(':')})")
              csharp_lines.append("    {")
          elif line.startswith("    else:"):
              csharp_lines.append("    }")
              csharp_lines.append("    else")
              csharp_lines.append("    {")
          elif line.strip() == "":
              continue
          else:
              csharp_lines.append(f"    {line}")
      
      csharp_lines.append("}")
      return '\n'.join(csharp_lines)