Reverse a string in C#

We can reverse the characters of a string like below.
String is converted to char array after that reverse operation will happen.

using System;
namespace forgetCode
    class Program
        public static void Main(string[] args)
            Console.WriteLine("Enter the string to reverse :");
            string name = Console.ReadLine();

            char[] namesArray = name.ToCharArray();

            string nameReverse = new string(namesArray);




Enter the string to reverse :
forget code

edoc tegrof