input: Write a function to convert a given Python program to a C# program. The function should take in the Python function as a string and return the equivalent C# function as a string. If the input is empty, return an empty string.
  assert convert_python_to_csharp("def power(x, y):\n    if y == 0:\n        return 1\n    else:\n        return x * power(x, y - 1)")=="$func$=public int Power(int x, int y)");
  assert convert_python_to_csharp("def add(a, b):\n    return a + b")=="$func$=public int Add(int a, int b)");
  assert convert_python_to_csharp("def greet(name):\n    return 'Hello, ' + name")=="$func$=public string Greet(string name)");
  assert convert_python_to_csharp("")=="")
output: def convert_python_to_csharp(python_code):
      if not python_code:
          return ""
      
      lines = python_code.strip().split('\n')
      func_def = lines[0]
      func_name = func_def.split('(')[0].split()[-1]
      params = func_def.split('(')[1].split(')')[0].split(', ')
      param_types = ['int' if p.isdigit() else 'string' for p in params]
      return_type = 'int' if 'return' in python_code and python_code.split('return')[1].strip().isdigit() else 'string'
      
      csharp_params = ', '.join([f'{param_types[i]} {params[i]}' for i in range(len(params))])
      csharp_func = f"public {return_type} {func_name.capitalize()}({csharp_params})"
      
      return csharp_func