input: from typing import List
  
  
  def convert_python_to_csharp(python_code: str) -> str:
      """ Converts a given Python function to a C# function. The input Python code will have the function defined in Python and the output should be the equivalent C# function.
      >>> convert_python_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:     lines = python_code.split('\n')
      csharp_code = []
      function_name = ""
      parameters = []
      return_type = "int"  # Assuming int for simplicity
  
      for line in lines:
          if line.startswith("def "):
              parts = line[4:].split('(')
              function_name = parts[0]
              parameters = parts[1].split(')')[0].split(', ')
              csharp_code.append(f"public {return_type} {function_name.capitalize()}({', '.join([f'int {p}' for p in parameters])})")
              csharp_code.append("{")
          elif line.startswith("    "):
              csharp_line = line.replace("if ", "if (").replace(":", ")")
              csharp_line = csharp_line.replace("return ", "return ") + ";"
              csharp_code.append("    " + csharp_line)
          elif line == "":
              continue
  
      csharp_code.append("}")
      return '\n'.join(csharp_code)