Getting length of ParellQuery collection
Posted
by dotnetdev
on Stack Overflow
See other posts from Stack Overflow
or by dotnetdev
Published on 2010-04-02T15:12:35Z
Indexed on
2010/04/02
15:13 UTC
Read the original article
Hit count: 173
c#
Hi,
Is there a way to get the length of a collection from this?
ParallelQuery<string> Lines = File.ReadAllLines("Topics.txt").AsParallel<string>();
This has no length property. There is a count method but it takes a Func. If I don't pass a Func paremeter, I could get all the properties in the collection, but how could I not pass one in?
Thanks
© Stack Overflow or respective owner