Hi, I've got a structure with multiple strings. I want to copy a string array into the structure array. Any suggestions? I don't want the string copied into all elements of the structure array, just the one I specify.
protected struct my_struct
protected string string1;
protected string string2;
protected string string3;
protected void doSomeWork()
string myStringArray = new string ;
my_struct myStructureArray = new my_struct;
myStringArray = "a";
myStringArray = "b";
myStringArray = "c";
myStringArray = "d";
myStringArray = "e";
//Here's basically where I'm stuck!
Array.Copy(myStringArray, myStructArray.string1, 1);
Any help would be appreciated. I have a feeling this is something simple that I'm missing.