input: 
  def convert_to_csharp(python_code: str, language_specifications: str) -> str:
      """Convert a given Python program to a C# program as per specified input instructions and language specifications.
      
      >>> convert_to_csharp('def power(x, y):\\n    if y == 0:\\n        return 1\\n    else:\\n        return x * power(x, y - 1)', 'C#')
      '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('return ', 'return ').replace(')', ');').replace('(', '(')
      python_code = python_code.replace('if ', 'if (').replace('else', 'else {')
      python_code = python_code.replace('    ', '    ').replace('\\n', '\\n    ')
      python_code = python_code.replace('public ', 'public ').replace('int ', 'int ')
      python_code = python_code.replace('float ', 'float ').replace('str ', 'string ')
      python_code = python_code.replace('bool ', 'bool ').replace('list ', 'List<int> ')
      python_code = python_code.replace('dict ', 'Dictionary<string, int> ')
      python_code = python_code.replace('set ', 'HashSet<int> ')
      python_code = python_code.replace('tuple ', 'Tuple<int, int> ')
      python_code = python_code.replace('None', 'null')
      python_code = python_code.replace('True', 'true').replace('False', 'false')
      python_code = python_code.replace('print(', 'Console.WriteLine(')
      python_code = python_code.replace('input(', 'Console.ReadLine(')
      python_code = python_code.replace('range(', 'Enumerable.Range(')
      python_code = python_code.replace('len(', 'Count(')
      python_code = python_code.replace('append(', 'Add(')
      python_code = python_code.replace('remove(', 'Remove(')
      python_code = python_code.replace('pop(', 'RemoveAt(')
      python_code = python_code.replace('insert(', 'Insert(')
      python_code = python_code.replace('sort(', 'Sort(')
      python_code = python_code.replace('reverse(', 'Reverse(')
      python_code = python_code.replace('split(', 'Split(')
      python_code = python_code.replace('join(', 'Join(')
      python_code = python_code.replace('replace(', 'Replace(')
      python_code = python_code.replace('startswith(', 'StartsWith(')
      python_code = python_code.replace('endswith(', 'EndsWith(')
      python_code = python_code.replace('upper(', 'ToUpper(')
      python_code = python_code.replace('lower(', 'ToLower(')
      python_code = python_code.replace('strip(', 'Trim(')
      python_code = python_code.replace('lstrip(', 'TrimStart(')
      python_code = python_code.replace('rstrip(', 'TrimEnd(')
      python_code = python_code.replace('find(', 'IndexOf(')
      python_code = python_code.replace('rfind(', 'LastIndexOf(')
      python_code = python_code.replace('count(', 'Count(')
      python_code = python_code.replace('isalpha(', 'IsLetter(')
      python_code = python_code.replace('isdigit(', 'IsDigit(')
      python_code = python_code.replace('isalnum(', 'IsLetterOrDigit(')
      python_code = python_code.replace('isspace(', 'IsWhiteSpace(')
      python_code = python_code.replace('islower(', 'IsLower(')
      python_code = python_code.replace('isupper(', 'IsUpper(')
      python_code = python_code.replace('isnumeric(', 'IsNumeric(')
      python_code = python_code.replace('isdecimal(', 'IsDecimal(')
      python_code = python_code.replace('isidentifier(', 'IsIdentifier(')
      python_code = python_code.replace('isprintable(', 'IsPrintable(')
      python_code = python_code.replace('isascii(', 'IsAscii(')
      python_code = python_code.replace('islower(', 'IsLower(')
      python_code = python_code.replace('isupper(', 'IsUpper(')
      python_code = python_code.replace('isnumeric(', 'IsNumeric(')
      python_code = python_code.replace('isdecimal(', 'IsDecimal(')
      python_code = python_code.replace('isidentifier(', 'IsIdentifier(')
      python_code = python_code.replace('isprintable(', 'IsPrintable(')
      python_code = python_code.replace('isascii(', 'IsAscii(')
      python_code = python_code.replace('islower(', 'IsLower(')
      python_code = python_code.replace('isupper(', 'IsUpper(')
      python_code = python_code.replace('isnumeric(', 'IsNumeric(')
      python_code = python_code.replace('isdecimal(', 'IsDecimal(')
      python_code = python_code.replace('isidentifier(', 'IsIdentifier(')
      python_code = python_code.replace('isprintable(', 'IsPrintable(')
      python_code = python_code.replace('isascii(', 'IsAscii(')
      python_code = python_code.replace('islower(', 'IsLower(')
      python_code = python_code.replace('isupper(', 'IsUpper(')
      python_code = python_code.replace('isnumeric(', 'IsNumeric(')
      python_code = python_code.replace('isdecimal(', 'IsDecimal(')
      python_code = python_code.replace('isidentifier(', 'IsIdentifier(')
      python_code = python_code.replace('isprintable(', 'IsPrintable(')
      python_code = python_code.replace('isascii(', 'IsAscii(')
      python_code = python_code.replace('islower(', 'IsLower(')
      python_code = python_code.replace('isupper(', 'IsUpper(')
      python_code = python_code.replace('isnumeric(', 'IsNumeric(')
      python_code = python_code.replace('isdecimal(', 'IsDecimal(')
      python_code = python_code.replace('isidentifier(', 'IsIdentifier(')
      python_code = python_code.replace('isprintable(', 'IsPrintable(')
      python_code = python_code.replace('isascii(', 'IsAscii(')
      python_code = python_code.replace('islower(', 'IsLower(')
      python_code = python_code.replace('isupper(', 'IsUpper(')
      python_code = python_code.replace('isnumeric(', 'IsNumeric(')
      python_code = python_code.replace('isdecimal(', 'IsDecimal(')
      python_code = python_code.replace('isidentifier(', 'IsIdentifier(')
      python_code = python_code.replace('isprintable(', 'IsPrintable(')
      python_code = python_code.replace('isascii(', 'IsAscii(')
      python_code = python_code.replace('islower(', 'IsLower(')
      python_code = python_code.replace('isupper(', 'IsUpper(')
      python_code = python_code.replace('isnumeric(', 'IsNumeric(')
      python_code = python_code.replace('isdecimal(', 'IsDecimal(')
      python_code = python_code.replace('isidentifier(', 'IsIdentifier(')
      python_code = python_code.replace('isprintable(', 'IsPrintable(')
      python_code = python_code.replace('isascii(', 'IsAscii(')
      python_code = python_code.replace('islower(', 'IsLower(')
      python_code = python_code.replace('isupper(', 'IsUpper(')
      python_code = python_code.replace('isnumeric(', 'IsNumeric(')
      python_code = python_code.replace('isdecimal(', 'IsDecimal(')
      python_code = python_code.replace('isidentifier(', 'IsIdentifier(')
      python_code = python_code.replace('isprintable(', 'IsPrintable(')
      python_code = python_code.replace('isascii(', 'IsAscii(')
      python_code = python_code.replace('islower(', 'IsLower(')
      python_code = python_code.replace('isupper(', 'IsUpper(')
      python_code = python_code.replace('isnumeric(', 'IsNumeric(')
      python_code = python_code.replace('isdecimal(', 'IsDecimal(')
      python_code = python_code.replace('isidentifier(', 'IsIdentifier(')
      python_code = python_code.replace('isprintable(', 'IsPrintable(')
      python_code = python_code.replace('isascii(', 'IsAscii(')
      python_code = python_code.replace('islower(', 'IsLower(')
      python_code = python_code.replace('isupper(', 'IsUpper(')
      python_code = python_code.replace('isnumeric(', 'IsNumeric(')
      python_code = python_code.replace('isdecimal(', 'IsDecimal(')
      python_code = python_code.replace('isidentifier(', 'IsIdentifier(')
      python_code = python_code.replace('isprintable(', 'IsPrintable(')
      python_code = python_code.replace('isascii(', 'IsAscii(')
      python_code = python_code.replace('islower(', 'IsLower(')
      python_code = python_code.replace('isupper(', 'IsUpper(')
      python_code = python_code.replace('isnumeric(', 'IsNumeric(')
      python_code = python_code.replace('isdecimal(', 'IsDecimal(')
      python_code = python_code.replace('isidentifier(', 'IsIdentifier(')
      python_code = python_code.replace('isprintable(', 'IsPrintable(')
      python_code = python_code.replace('isascii(', 'IsAscii(')
      python_code = python_code.replace('islower(', 'IsLower(')
      python_code = python_code.replace('isupper(', 'IsUpper(')
      python_code = python_code.replace('isnumeric(', 'IsNumeric(')
      python_code = python_code.replace('isdecimal(', 'IsDecimal(')
      python_code = python_code.replace('isidentifier(', 'IsIdentifier(')
      python_code = python_code.replace('isprintable(', 'IsPrintable(')
      python_code = python_code.replace('isascii(', 'IsAscii(')
      python_code = python_code.replace('islower(', 'IsLower(')
      python_code = python_code.replace('isupper(', 'IsUpper(')
      python_code = python_code.replace('isnumeric(', 'IsNumeric(')
      python_code = python_code.replace('isdecimal(', 'IsDecimal(')
      python_code = python_code.replace('isidentifier(', 'IsIdentifier(')
      python_code = python_code.replace('isprintable(', 'IsPrintable(')
      python_code = python_code.replace('isascii(', 'IsAscii(')
      python_code = python_code.replace('islower(', 'IsLower(')
      python_code = python_code.replace('isupper(', 'IsUpper(')
      python_code = python_code.replace('isnumeric(', 'IsNumeric(')
      python_code = python_code.replace('isdecimal(', 'IsDecimal(')
      python_code = python_code.replace('isidentifier(', 'IsIdentifier(')
      python_code = python_code.replace('isprintable(', 'IsPrintable(')
      python_code = python_code.replace('isascii(', 'IsAscii(')
      python_code = python_code.replace('islower(', 'IsLower(')
      python_code = python_code.replace('isupper(', 'IsUpper(')
      python_code = python_code.replace('isnumeric(', 'IsNumeric(')
      python_code = python_code.replace('isdecimal(', 'IsDecimal(')
      python_code = python_code.replace('isidentifier(', 'IsIdentifier(')
      python_code = python_code.replace('isprintable(', 'IsPrintable(')
      python_code = python_code.replace('isascii(', 'IsAscii(')
      python_code = python_code.replace('islower(', 'IsLower(')
      python_code = python_code.replace('isupper(', 'IsUpper(')
      python_code = python_code.replace('isnumeric(', 'IsNumeric(')
      python_code = python_code.replace('isdecimal(', 'IsDecimal(')
      python_code = python_code.replace('isidentifier(', 'IsIdentifier(')
      python_code = python_code.replace('isprintable(', 'IsPrintable(')
      python_code = python_code.replace('isascii(', 'IsAscii(')
      python_code = python_code.replace('islower(', 'IsLower(')
      python_code = python_code.replace('isupper(', 'IsUpper(')
      python_code = python_code.replace('isnumeric(', 'IsNumeric(')
      python_code = python_code.replace('isdecimal(', 'IsDecimal(')
      python_code = python_code.replace('isidentifier(', 'IsIdentifier(')
      python_code = python_code.replace('isprintable(', 'IsPrintable(')
      python_code = python_code.replace('isascii(', 'IsAscii(')
      python_code = python_code.replace('islower(', 'IsLower(')
      python_code = python_code.replace('isupper(', 'IsUpper(')
      python_code = python_code.replace('isnumeric(', 'IsNumeric(')
      python_code = python_code.replace('isdecimal(', 'IsDecimal(')
      python_code = python_code.replace('isidentifier(', 'IsIdentifier(')
      python_code = python_code.replace('isprintable(', 'IsPrintable(')
      python_code = python_code.replace('isascii(', 'IsAscii(')
      python_code = python_code.replace('islower(', 'IsLower(')
      python_code = python_code.replace('isupper(', 'IsUpper(')
      python_code = python_code.replace('isnumeric(', 'IsNumeric(')
      python_code = python_code.replace('isdecimal(', 'IsDecimal(')
      python_code = python_code.replace('isidentifier(', 'IsIdentifier(')
      python_code = python_code.replace('isprintable(', 'IsPrintable(')
      python_code = python_code.replace('isascii(', 'IsAscii(')
      python_code = python_code.replace('islower(', 'IsLower(')
      python_code = python_code.replace('isupper(', 'IsUpper(')
      python_code = python_code.replace('isnumeric(', 'IsNumeric(')
      python_code = python_code.replace('isdecimal(', 'IsDecimal(')
      python_code = python_code.replace('isidentifier(', 'IsIdentifier(')
      python_code = python_code.replace('isprintable(', 'IsPrintable(')
      python_code = python_code.replace('isascii(', 'IsAscii(')
      python_code = python_code.replace('islower(', 'IsLower(')
      python_code = python_code.replace('isupper(', 'IsUpper(')
      python_code = python_code.replace('isnumeric(', 'IsNumeric(')
      python_code = python_code.replace('isdecimal(', 'IsDecimal(')
      python_code = python_code.replace('isidentifier(', 'IsIdentifier(')
      python_code = python_code.replace('isprintable(', 'IsPrintable(')
      python_code = python_code.replace('isascii(', 'IsAscii(')
      python_code = python_code.replace('islower(', 'IsLower(')
      python_code = python_code.replace('isupper(', 'IsUpper(')
      python_code = python_code.replace('isnumeric(', 'IsNumeric(')
      python_code = python_code.replace('isdecimal(', 'IsDecimal(')
      python_code = python_code.replace('isidentifier(', 'IsIdentifier(')
      python_code = python_code.replace('isprintable(', 'IsPrintable(')
      python_code = python_code.replace('isascii(', 'IsAscii(')
      python_code = python_code.replace('islower(', 'IsLower(')
      python_code = python_code.replace('isupper(', 'IsUpper(')
      python_code = python_code.replace('isnumeric(', 'IsNumeric(')
      python_code = python_code.replace('isdecimal(', 'IsDecimal(')
      python_code = python_code.replace('isidentifier(', 'IsIdentifier(')
      python_code = python_code.replace('isprintable(', 'IsPrintable(')
      python_code = python_code.replace('isascii(', 'IsAscii(')
      python_code = python_code.replace('is