I want to reverse a string as given in the example.
string[] actor = new string[] { "amitabh", "abhishek", "jitendra", "Salman", "Aishwariya" };
var resultstring= actor.Reverse().Select(c => c.Reverse()).ToArray();
foreach(var m in resultstring)
{
//how to fetch this?
}
the output should be
ayirawhsia,namlas,ardnetij,kehsihba,hbatima
Most of the post mentioned on how to reverse without using built in reverse().
I need the result using only reverse built in function using linq. I am able to make it as shown in the above snippet but couldnt reach the end.
Can someone help me to fix this?