I've got an array like this:
string[] parts = line.Split(',');
string store = parts[0];
string sku = parts[1];
string subcatcode = parts[2];
string price = parts[3];
string date = parts[4];
string desc = parts[5];
I want description to equal the joined value of all the parts with an index of 5 or higher. Will this work or is there a better way to do it?
string desc = string.Join(",", parts.Skip(5).ToArray());
The issue is that the last part of the CSV I'm parsing can contain commas (parts 0-4 are guaranteed not to).