<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>..::\\ www.christiano.ch //::.. &#187; LINQ</title>
	<atom:link href="http://www.christiano.ch/wordpress/category/microsoft/microsoft_visual_studio/microsoft_visual_studio_linq/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.christiano.ch/wordpress</link>
	<description>christiano.ch blog - personal knowledge base, news, memoires et cetera</description>
	<lastBuildDate>Fri, 06 Jan 2012 15:28:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<meta xmlns="http://www.w3.org/1999/xhtml" name="robots" content="noindex,follow" />
		<item>
		<title>Use LINQ to query a List of String</title>
		<link>http://www.christiano.ch/wordpress/2009/08/25/use-linq-to-query-a-list-of-string/</link>
		<comments>http://www.christiano.ch/wordpress/2009/08/25/use-linq-to-query-a-list-of-string/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 21:38:47 +0000</pubDate>
		<dc:creator>christian</dc:creator>
				<category><![CDATA[LINQ]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://www.christiano.ch/wordpress/?p=457</guid>
		<description><![CDATA[LINQ (Language Integrated Query) is cool. I just wrote a little sample to query a List of String. Private coolPeople As New List&#40;Of String&#41;&#40;&#41; &#160; Sub Main&#40;&#41; coolPeople.Add&#40;&#34;Christoph&#34;&#41; coolPeople.Add&#40;&#34;Christian&#34;&#41; coolPeople.Add&#40;&#34;Hans&#34;&#41; coolPeople.Add&#40;&#34;Flurina&#34;&#41; coolPeople.Add&#40;&#34;Angie&#34;&#41; coolPeople.Add&#40;&#34;Paul&#34;&#41; &#160; Dim query As IEnumerable&#40;Of String&#41; = &#8230; <a href="http://www.christiano.ch/wordpress/2009/08/25/use-linq-to-query-a-list-of-string/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>LINQ (Language Integrated Query) is cool. I just wrote a little sample to query a List of String.<span id="more-457"></span></p>

<div class="wp_syntax"><div class="code"><pre class="vbnet" style="font-family:monospace;"><span style="color: #FF8000;">Private</span> coolPeople <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">New</span> List<span style="color: #000000;">&#40;</span><span style="color: #FF8000;">Of</span> <span style="color: #FF8000;">String</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
&nbsp;
<span style="color: #0600FF;">Sub</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
coolPeople.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;Christoph&quot;</span><span style="color: #000000;">&#41;</span>
coolPeople.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;Christian&quot;</span><span style="color: #000000;">&#41;</span>
coolPeople.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;Hans&quot;</span><span style="color: #000000;">&#41;</span>
coolPeople.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;Flurina&quot;</span><span style="color: #000000;">&#41;</span>
coolPeople.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;Angie&quot;</span><span style="color: #000000;">&#41;</span>
coolPeople.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;Paul&quot;</span><span style="color: #000000;">&#41;</span>
&nbsp;
<span style="color: #0600FF;">Dim</span> query <span style="color: #FF8000;">As</span> IEnumerable<span style="color: #000000;">&#40;</span><span style="color: #FF8000;">Of</span> <span style="color: #FF8000;">String</span><span style="color: #000000;">&#41;</span> <span style="color: #008000;">=</span> From p In coolPeople <span style="color: #0600FF;">Select</span> p _
Where p.<span style="color: #0000FF;">Length</span> <span style="color: #008000;">&amp;</span>gt; <span style="color: #FF0000;">5</span> _
Order By p
<span style="color: #FF8000;">For</span> <span style="color: #0600FF;">Each</span> person <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">String</span> In query
Console.<span style="color: #0000FF;">WriteLine</span><span style="color: #000000;">&#40;</span>person<span style="color: #000000;">&#41;</span>
<span style="color: #FF8000;">Next</span>
Console.<span style="color: #0000FF;">ReadLine</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
&nbsp;
<span style="color: #0600FF;">End</span> <span style="color: #0600FF;">Sub</span></pre></div></div>

<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Use+LINQ+to+query+a+List+of+String+http%3A%2F%2Fchristiano.ch%2Fwordpress%2F%3Fp%3D457" title="Post to Twitter"><img class="nothumb" src="http://www.christiano.ch/wordpress/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/intent/tweet?text=Use+LINQ+to+query+a+List+of+String+http%3A%2F%2Fchristiano.ch%2Fwordpress%2F%3Fp%3D457" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.christiano.ch/wordpress/2009/08/25/use-linq-to-query-a-list-of-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

