I have the following example strings:
,something2,something3,,something5
something1,,something3,something4,
I need to pull this into an array, but insert the "None" value for anything missing. (Different pieces of this string could be missing) For instance, it should be this when completed:
None,something2,something3,None,something5
something1,None,something3,something4,None
The length of the "array" would always be 5 values.
Anyone know how I would do that in C#? I can split the string into an array, but then I can't seem to update the array:
s.Split(char(',')) //How do I add the 'None' to the blank array parts?
If easier to add the "None" to the string and then split that to an array that would work as well.
