using System.Text.RegularExpressions;
public static void Main()
string myValueBeingTested = "asdf";
string theResultValue = myValueBeingTested switch
Regex.IsMatch(x, "[a..z]+") => "everything is lowercase",
Regex.IsMatch(y, "[A..Z]+") => "EVERYTHING IS UPPERCASE",
"Something Specific" => "The Specific One",
_ => "The default, no match scenario"
Console.WriteLine(theResultValue);