list c# reverse code example
Example 1: c# reverse list
List<string> authors = new List<string>();
authors.Add("Your dad")
authors.Add("Your mum")
authors.Reverse();
Example 2: c# reverse string
public static string ReverseString(string s)
{
char[] arr = s.ToCharArray();
Array.Reverse(arr);
return new string(arr);
}