This article describes the method of C# to switch case to strings. Share it for your reference. The specific implementation method is as follows:
The C# code is as follows:
Copy the codeThe code is as follows:
public class Program
{
public static void Main()
{
string s = "OsChInAhI§$%&/()1234567890";
Func<char, char> toggle = c => (c) ? (c) : (c);
(s);
(new string((toggle).ToArray()));
}
}
{
public static void Main()
{
string s = "OsChInAhI§$%&/()1234567890";
Func<char, char> toggle = c => (c) ? (c) : (c);
(s);
(new string((toggle).ToArray()));
}
}
I hope this article will be helpful to everyone's C# programming.