input: from typing import List
  
  def convert_to_csharp(python_code: List[str]) -> List[str]:
      """ Convert a given Python program to a C# program.
      >>> convert_to_csharp(["def power(x, y):", "    if y == 0:", "        return 1", "    else:", "        return x * power(x, y - 1)"])
      ['public int Power(int x, int y)', '{', '    if (y == 0)', '    {', '        return 1;', '    }', '    else', '    {', '        return x * Power(x, y - 1);', '    }', '}']
      """
output:     csharp_code = []
      for line in python_code:
          if line.startswith("def "):
              function_name = line.split("(")[0][4:]
              params = line.split("(")[1].split(")")[0].split(", ")
              csharp_params = ", ".join([f"int {param}" for param in params])
              csharp_code.append(f"public int {function_name}({csharp_params})")
              csharp_code.append("{")
          elif line.startswith("    if "):
              condition = line[7:].strip()
              csharp_code.append(f"    if ({condition})")
              csharp_code.append("    {")
          elif line.startswith("    else:"):
              csharp_code.append("    else")
              csharp_code.append("    {")
          elif line.startswith("        return "):
              return_value = line[14:].strip()
              csharp_code.append(f"        return {return_value};")
          elif line.startswith("    return "):
              return_value = line[10:].strip()
              csharp_code.append(f"    return {return_value};")
          elif line.strip() == "":
              csharp_code.append("}")
      csharp_code.append("}")
      return csharp_code