Ok, i feel so ashamed to ask this question, but I can’t understand why this code in c# does not compile in vs2010 express:
string[] value;
for (int i = 0; i < 3; i++)
{
value[i] = "";
}
Why it says that it’s unassigned?
you need to assign the array first, then items in the array.
If you want to add items dynamically, and have it resize as needed, you might be better off with a generic list, eg.