Try this
string input = "helloworld";
string output = "";
for (int i = 0; i < input.Length - 1; i += 2)
{
output += input[i + 1];
output += input[i];
}
3
solved Reverse string by 2 pair in c#.net [closed]