I have an array which I split on basis of comma "," but there is a last entry as empty because I am concatenating it in jquery. I used
Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
but it removes all the empty entries from an array e.g. if my array is
"1"," ","2","3"," "
it returns 1,2,3. But I want it to remove only the last one from it e.g.
return 1," ",2,3. Is it possible to do it without substracting 1 from the array?