I am new to c# programming. Could someone please help me find out how to check whether the string is null before splitting it. I used the below method, but it throws a null reference error if the string is null.
string[] splittedString=orgString.Split(',');
1 Answer