Syntax to get the collection size in a linq query? -


i trying use skip(n) function in linq query. problem need know collection size (count()) inorder calculate n.

i having trouble wrapping head around query below... how collection size inside skip part of query below ?

var t = row in db.table <clause>         orderby <row> ascending          group row <row>         select a).orderby(x => x.key).skip(math.max(0, <need know collection size> - n ).todictionary(...... 


Comments

Popular posts from this blog

rdbms - what exactly the undo information lives in oracle? -

bash - How do you programmatically add a bats test? -

clojure - 'get' replacement that throws exception on not found? -