This question already has an answer here:
My list array contains 3 items, when it should only contain 2, What am I doing wrong?
string Ids ="1d2d308b-a4c8-4015-831d-6d6be0617cc7;0fda9938-dff9-494f-99d9-60c1e73b91dd;"
List<string> clients = Ids.Trim().Split(';').ToList();
Result:
Why is [2] "" Added? and how do I stop it being created?
Aucun commentaire:
Enregistrer un commentaire