Check if string start with capital or small letter in C# and VB.Net

Last Reply one year ago By pandeyism

Posted one year ago
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;
}

 

This question does not have replies that have been liked.