I'm sorry about the naive question. I have the following:
public Array Values
{
get;
set;
}
public List<object> CategoriesToList()
{
List<object> vals = new List<object>();
vals.AddRange(this.Values);
return vals;
}
But this won't work because I can't type the array. Is there any way to easily fix the code above or, in general, convert System.Collections.Array to System.Collections.Generic.List?