M
Mark Oueis
ArrayList arrayList = new ArrayList();
foreach (Blabla bla in Blablas)
{
arrayList.Add(Convert.ToInt32(blabla.something));
}
so far this works great..
but now
int[] intArray = (int[])includedDevices.ToArray(typeof(int)));
throws System.InvalidCastException: At least one element in the source
array could not be cast down to the destination array type.
i've also tried
int[] intArray = (int[])includedDevices.ToArray(typeof(System.Int32)));
same thing
What's the issue here? I'm doing everything right
Mark
foreach (Blabla bla in Blablas)
{
arrayList.Add(Convert.ToInt32(blabla.something));
}
so far this works great..
but now
int[] intArray = (int[])includedDevices.ToArray(typeof(int)));
throws System.InvalidCastException: At least one element in the source
array could not be cast down to the destination array type.
i've also tried
int[] intArray = (int[])includedDevices.ToArray(typeof(System.Int32)));
same thing
What's the issue here? I'm doing everything right
Mark