int [] nums = {1, -2, 3, 0, -4, 5}
var posNums = from n in nums where n >0 select n;
hello, how can i code with Query method
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted Jun 16, 2015, 8:55 PM EDT
Sreekanth ReddyRank #726 · 3.2K reputationPosted Jun 16, 2015, 8:56 PM EDT
Saroj Kumar SahuRank #1,766 · 849 reputationPosted Jun 16, 2015, 9:15 PM EDT
Munesh SharmaRank #174 · 13.9K reputationPosted Jun 16, 2015, 9:19 PM EDT