Could you tell me how can I put elements from a list to twodimensional array in C#?
tura = new string[howManyWords, 6];
howManyWords = 0;
foreach (words word in wc.words)
{
if (word.CategoryNumber == scb.Category)
{
tura[howManyWords] ......; howManyWords++;
}
}
I have a list made from XML file. I work in Unity.
<?xml version="1.0" encoding="utf-8"?>
<WordCollection>
<Words>
<Word name="$mezczyzna">
<CategoryNumber>1</CategoryNumber>
<PolishName>mężczyzna</PolishName>
<EnglishName>a man</EnglishName>
<AudioName>man.mp3</AudioName>
<ImageName>man</ImageName>
<ImageLocalisationWidth>200</ImageLocalisationWidth>
<ImageLocalisationHigh>700</ImageLocalisationHigh>
</Word>
</Words>
</WordCollection>