{"id":117,"date":"2010-10-11T21:43:07","date_gmt":"2010-10-12T01:43:07","guid":{"rendered":"http:\/\/wukenny.host-ed.net\/?p=117"},"modified":"2010-10-11T21:43:07","modified_gmt":"2010-10-12T01:43:07","slug":"a-simple-linqtoobjects-snippet","status":"publish","type":"post","link":"http:\/\/kennywu.info\/?p=117","title":{"rendered":"A Simple LinqToObjects Snippet"},"content":{"rendered":"<pre lang=\"csharp\">\nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\n\nnamespace LinqToObjects\n{\n    class LinqToObjects\n    {\n        static void Main(string[] args)\n        {\n            string[] names = { \"James Huddleston\", \"Pearly\", \"Ami Know\", \"Rupli Agarwal\", \"Beth Christams\", \"Fabio Claudio\", \"Vamika Agarwal\", \"Vidya Varat Agrawaaaa\"};\n            IEnumerable<string> namesOfPeople =             \n                from name in names\n                where name.Length >9\n                select name;\n            foreach (var name in namesOfPeople)\n            {\n                Console.WriteLine(name);\n            }\n        }\n    }\n}\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace LinqToObjects { class LinqToObjects { static void Main(string[] args) { string[] names = { &#8220;James Huddleston&#8221;, &#8220;Pearly&#8221;, &#8220;Ami Know&#8221;, &#8220;Rupli Agarwal&#8221;, &#8220;Beth Christams&#8221;, &#8220;Fabio Claudio&#8221;, &#8220;Vamika Agarwal&#8221;, &#8220;Vidya Varat Agrawaaaa&#8221;}; IEnumerable &hellip; <a href=\"http:\/\/kennywu.info\/?p=117\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[40,54],"class_list":["post-117","post","type-post","status-publish","format-standard","hentry","category-programing","tag-linq","tag-snippet"],"_links":{"self":[{"href":"http:\/\/kennywu.info\/index.php?rest_route=\/wp\/v2\/posts\/117","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/kennywu.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/kennywu.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/kennywu.info\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/kennywu.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=117"}],"version-history":[{"count":0,"href":"http:\/\/kennywu.info\/index.php?rest_route=\/wp\/v2\/posts\/117\/revisions"}],"wp:attachment":[{"href":"http:\/\/kennywu.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=117"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/kennywu.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=117"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/kennywu.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}