I'm not sure what I'm doing is even possible, but I've tried a variety of combos and feel it should be possible - I hope so!
I'm trying to split a long string on a comma directly in to a set of variables, e.g.
string A1; string B2; string C3;
string WHOLE = "xxx,yyy,zzz";
Result will be:
A1 = xxx, B2 = yyy and C3 = zzz
I want to split that string WHOLE
in to its 3 parts, directly in to A1,B2,C3...
I've tried:
string[A1, A2, C3] = WHOLE.Split(',');
string[] (A1, A2, C3) = WHOLE.Split(',');
string[] {A1, A2, C3} = WHOLE.Split(',');
I hope you get the idea, I'm also currently trying to figure out if enumerators are applicable here but I'm still quite fresh to C# and never used them in VB.Net - I feel like c# will have this functionality I'm just not sure where to begin...