How to check if string has at least 2 characters?
THANKS
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Dec 2, 2013, 12:07 PM
1. if (str.Length >= 2) { // do something }
2. if (str.Contains(char1.ToString()) && str.Contains(char2.ToString())) { // do something }
Mahesh AllePosted Dec 2, 2013, 9:43 AM