input: 
  from typing import List
  
  
  def convert_to_csharp(function_code: str) -> str:
      """ Converts a given Python function code to its equivalent C# function code.
      >>> 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:     lines = function_code.split('\n')
      csharp_code = []
      for line in lines:
          if line.strip().startswith('def '):
              func_name = line.split('(')[0].split()[-1]
              params = line.split('(')[1].split(')')[0].split(',')
              param_types = [p.split(':')[0].strip() for p in params]
              param_names = [p.split(':')[1].strip() if ':' in p else p.strip() for p in params]
              csharp_params = ', '.join([f'int {name}' for name in param_names])
              csharp_code.append(f'public int {func_name}({csharp_params})')
              csharp_code.append('{')
          elif line.strip().startswith('return '):
              return_value = line.split('return ')[1].strip()
              csharp_code.append(f'    return {return_value};')
          elif line.strip().startswith('if '):
              condition = line.split('if ')[1].strip()
              csharp_code.append(f'    if ({condition})')
              csharp_code.append('    {')
          elif line.strip().startswith('else:'):
              csharp_code.append('    }')
              csharp_code.append('    else')
              csharp_code.append('    {')
          elif line.strip() == '':
              csharp_code.append('    }')
              csharp_code.append('}')
          else:
              csharp_code.append(f'    {line}')
      return '\n'.join(csharp_code)