List<T> : I have a two column List and just want to pass one column in an array to a method.

R

Reece

The method expects an array of type VertexPositionColor.

I want a List of type (string, int). Is there an elegant way to just grab
just the first column and pass that to a method?

(I know I can create my own function that copies just a single column into
an array and I also know I can create a parallel List with just (int). And
List.ToArray() merely converts the List to an array.)

Thank you.
 
R

Reece

Thanks, Pete, that is exactly the model I was looking for and I have now
implemented it. I horribly garbled what I was trying to say and I will be
more careful next time. The VertexPositionColor should not have been in the
post, or I shouldn't have had string in the post.

Thanks again!

Reece
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top