c# - Convert query expression to dot notation -


i want convert these 2 query expression dot notation

q1

var x = tbl in person.get(2, cat.count)         group cat[i] i/10; 

q2

foreach(var in x)     string.split("-", a); 

how do?

this untested, please see if produces correct results -

var catlist = person.get(2, cat.count); catlist.groupby(c => catlist.indexof(c)/10).select(a => a.split("-", a)) 

Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -