A
ad
I have a string like string sNo.
I want to cast it to int with int.Parse(sNo)
but if the string is null or empty, it will thow exception.
I must check if sNo is not null and is not empty before cast like:
if ((sNo<>null) && (sNo<>""))
Have there any function to check the null and "" at once
I want to cast it to int with int.Parse(sNo)
but if the string is null or empty, it will thow exception.
I must check if sNo is not null and is not empty before cast like:
if ((sNo<>null) && (sNo<>""))
Have there any function to check the null and "" at once