I have list with empty space("__")
List<string> MyList = (List<string>)Session["MyList "];
if(MyList !=null || MyList != "")
{
}
MyList != "" does not work if string has more space so
How can i check my list string is "" or null by using linq in c# ?
"". What is it you want to check exactly?Session["MyList "]might be just that, guess that's what the OP means.