Check out example codes for "C# string is all zeros". It will help you in understanding the concepts better.

Code Example 1

bool isAllQuestion = input.All(c => c=='?');

Learn ReactJs, React Native from akashmittal.com