input: def convert_to_csharp(python_code: str) -> str:
      """Convert a given Python program to a C# program.
      >>> 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}'
      """
output:     python_code = python_code.replace("def ", "public ").replace(":", "{").replace("\n    ", "\n    ").replace("return ", "return ").replace(")", ");").replace("(", "(").replace("else", "else").replace("if ", "if (").replace(":", "");
      return python_code