Thursday, November 14, 2019

Check string first letter string or not.

string Data="10HEHEHE";
string str= Data.Substring(0,1);

if (str=="1")    // Check Particular char/letter 
{
       //  Code here
}

No comments:

Post a Comment

Create JSON file and auto download in c#

 public void ConvertJson()     {         string _JsonFileName = string.Empty;         GSTInvoiceMaster _GST = new GSTInvoiceMaster(); ...