input: from typing import List
  
  def convert_to_csharp(python_code: List[str]) -> List[str]:
      """ Convert a given Python program to a C# program.
      >>> 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);', '    }', '}']
      """
      csharp_code = []
      function_name_map = {'power': 'Power'}
      indent_spaces = 4
      indent_level = 0
  
      for line in python_code:
          stripped_line = line.strip()
          if stripped_line.startswith('def '):
              function_name, params = stripped_line[4:-1].split('(')
              param_list = [f'int {param}' for param in params.split(', ')]
              csharp_code.append(f'public int {function_name_map[function_name]}({", ".join(param_list)})')
              csharp_code.append('{')
              indent_level += 1
          elif stripped_line.startswith('if '):
              condition = stripped_line[3:].strip()
              csharp_code.append(' ' * indent_spaces * indent_level + f'if ({condition})')
              csharp_code.append(' ' * indent_spaces * indent_level + '{')
              indent_level += 1
          elif stripped_line.startswith('else:'):
              csharp_code.append(' ' * indent_spaces * (indent_level - 1) + '}')
              csharp_code.append(' ' * indent_spaces * indent_level + 'else')
              csharp_code.append(' ' * indent_spaces * indent_level + '{')
              indent_level += 1
          elif stripped_line.startswith('return '):
              return_value = stripped_line[7:].strip()
              csharp_code.append(' ' * indent_spaces * indent_level + f'return {return_value};')
          elif stripped_line == '' or stripped_line.startswith('#'):
              continue
          else:
              csharp_code.append(' ' * indent_spaces * indent_level + stripped_line)
  
      if indent_level > 0:
          csharp_code.append(' ' * indent_spaces * (indent_level - 1) + '}')
  
      return csharp_code
output:     if indent_level > 0:
          csharp_code.append(' ' * indent_spaces * (indent_level - 1) + '}')
  
      return csharp_code