Is it possible to Take object members directly from a queue of type object?

Posted by Luke Mcneice on Stack Overflow See other posts from Stack Overflow or by Luke Mcneice
Published on 2010-03-13T15:45:05Z Indexed on 2010/03/13 15:55 UTC
Read the original article Hit count: 514

Filed under:
|
|

Hi all,

If I where to have a Queue holding a collection of objects (Custom object,bool,bool,bool,bool) and the custom object holds three doubles itself.

Can I use the .Take(IntegerValue) command to only take one of the doubles (for the specified take length) from the custom entity contained in the queue and cast it to a double array, possibly with the .ToArray<double> function?

Thanks,

Luke

© Stack Overflow or respective owner

Related posts about c#

Related posts about queue