input: Write a python function to convert a string written in Python to its equivalent in C#.
  assert convert_to_csharp("def add(a, b): return a + b")=="public int Add(int a, int b) { return a + b; }"
  assert convert_to_csharp("def subtract(a, b): return a - b")=="public int Subtract(int a, int b) { return a - b; }"
  assert convert_to_csharp("def multiply(a, b): return a * b")=="public int Multiply(int a, int b) { return a * b; }"
output: def convert_to_csharp(py_code):
      # Extracting function name and parameters
      def_part, return_part = py_code.split(":")
      def_part = def_part.strip()
      return_part = return_part.strip()
  
      # Getting the function name and parameters
      def_keyword, func_name_params = def_part.split()
      func_name, params = func_name_params.split("(")
      params = params.rstrip(")").split(", ")
  
      # Constructing the C# function signature
      csharp_func_name = func_name.capitalize()
      csharp_params = ", ".join([f"int {param.strip()}" for param in params])
      csharp_signature = f"public int {csharp_func_name}({csharp_params})"
  
      # Constructing the C# function body
      csharp_body = f"return {return_part};"
  
      # Combining the signature and body
      csharp_code = f"{csharp_signature} {{ {csharp_body} }}"
      return csharp_code