Grasshopper

algorithmic modeling for Rhino

Error: Value of type 'System.Collections.Generic.List(Of Object)' cannot be converted to 'System.Array'.

Hello,

I have this problem:

Error: Value of type 'System.Collections.Generic.List(Of Object)' cannot be converted to 'System.Array'.

And I can't solve it, any help?

Thanks, Óscar.

Views: 4681

Attachments:

Replies to This Discussion

.ToArray()

.ToList()

I don't understand you, can you be more specific?

If you have a List(Of T) and you need an Array of Ts, then you can call the ToArray() function on your list:

Dim list As List(Of Integer) = jfsjkskjfsdfasdf

Dim ints As Integer() = list.ToArray()

--

David Rutten

david@mcneel.com

Poprad, Slovakia

I have a similar problem. Have you solved it yet?

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service