I want to check if my string contains all the upper case value or not for that I am using the below code but It does not work as expected for case 1 and only work for case2.
Case 1
string myString = "SWEET POTATO";
myString.All(char.IsUpper)
Case 2
string eval = "POTATO";
eval.All(char.IsUpper)
It does not give me any error but I want in both the cases it will return true because in both the cases string value is in Upper case letter