2
Answers

How to detect string start with capital letter or small

Rakib Ahmed

Rakib Ahmed

6y
2k
1
 
I have a same string Called ORDINE and ordine what i want to is to check if it is start with capital ordine or lowercase ordine. i want to do something below
 
if (line.Replace(".", "").Trim().StartsWith("ORDINE"))
{
skipLine = 3;
continue;
}
or 
 
if (line.Replace(".", "").Trim().StartsWith("ordine"))
{
skipLine = 1;
continue;
}
Answers (2)