How can I check if a string contains all question marks? Like this:
string input = \"????????\";
You can also try this:
private bool CheckIfStringContainsOnlyQuestionMark(string value) { return !value.Where(a => a != '?').Select(a => true).FirstOrDefault(); }