C# check if a string contains only a particular character
// This is to check if a string contains only the question mark "?".
string input = "???";
bool isAllQuestion = input.All(c => c=='?');
Console.WriteLine(isAllQuestion);
Console.ReadLine();
// output: True