input: from typing import List
  
  def convert_to_csharp(python_code: List[str]) -> List[str]:
      """ Converts a given Python program to a C# program. Each line of the Python 
      code should be converted to its C# equivalent and returned as a list of strings.
      Example:
      >>> 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:
          line = line.strip()
          if line.startswith("def "):
              line = line.replace("def ", "public ")
              line = line.replace(":", "")
              line += ")"
              if "int" in line or "float" in line or "double" in line:
                  line += " {"
              else:
                  line += " {"
          elif line.startswith("if "):
              line = line.replace("if ", "if (")
              line += ")"
          elif line.startswith("else:"):
              line = line.replace("else:", "else")
          elif line.startswith("return "):
              line = line.replace("return ", "return ")
              line += ";"
          elif line.startswith("    "):
              line = line.replace("    ", "    ")
          if line.endswith(":"):
              line = line[:-1]
          csharp_code.append(line)
      return csharp_code