public int[] FindItemsByDescription(string name)
{
int[] tempint = new int[this.items.Count];
int count = 0;
for (int x = 0; x < this.items.Count; x++)
{
Item i = this.items[x];
string[] tempd = i.description.Split('[');
string ix = tempd[0];
if (ix.Trim() == name)
{
tempint[count] = x;
count++;
}
}
int[] returnint = new int[count];
Array.Copy(tempint, 0, returnint, 0, count);
return returnint;
}