Check out example codes for "c# reverse a string". It will help you in understanding the concepts better.

Code Example 1

public static void Main(string[] args)
        {
            string s = "aeiouXYZ";
           Console.Write(Reverse(s) );
        }

        public static string Reverse(string s)
        {
            var result = new string(s.ToCharArray().Reverse().ToArray() );
            return result;
        }
------------------------------------------------------Option 2
foreach (int v in values.Select(x => x).Reverse())
{
      Console.Write(v + " ");
}

Code Example 2

public static string ReverseString(string s)
    {
        char[] arr = s.ToCharArray();
        Array.Reverse(arr);
        return new string(arr);
    }

Code Example 3

public void ReverseString(char[] s) {
        
        for(int i = 0; i < s.Length / 2; i++) {
    	    
            char temp = s[i];
    	    s[i] = s[s.Length - 1 - i];
    	    s[s.Length - 1 - i] = temp;
     
     }
}

Learn ReactJs, React Native from akashmittal.com