﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>dru commented on Playing with Orcas</title><description>man I hope that the new
  
  
[] {"a","b"} works. I am so jealous of python and rubys array literals.
  
  
-d
</description><link>http://ayende.com/2216/playing-with-orcas#comment4</link><guid>http://ayende.com/2216/playing-with-orcas#comment4</guid><pubDate>Fri, 16 Mar 2007 16:17:04 GMT</pubDate></item><item><title>Sergio commented on Playing with Orcas</title><description>For your last bullet point, ScottGu answered over at his blog:
  
http://weblogs.asp.net/scottgu/archive/2007/03/08/new-c-orcas-language-features-automatic-properties-object-initializers-and-collection-initializers.aspx#1979012
  
</description><link>http://ayende.com/2216/playing-with-orcas#comment3</link><guid>http://ayende.com/2216/playing-with-orcas#comment3</guid><pubDate>Fri, 16 Mar 2007 12:19:46 GMT</pubDate></item><item><title>Daniel Grunwald commented on Playing with Orcas</title><description>I didn't try it, but I've read about the syntax   new [] { "a", "b" }
  
So you don't have to write "string" anymore. This should allow creating arrays of anonymous types.
</description><link>http://ayende.com/2216/playing-with-orcas#comment2</link><guid>http://ayende.com/2216/playing-with-orcas#comment2</guid><pubDate>Fri, 16 Mar 2007 11:41:11 GMT</pubDate></item><item><title>scottgu commented on Playing with Orcas</title><description>If Intersect is an extension method, you could define it like so:
  
  
public static bool Intersect&lt;T&gt;(this T value, params T[] values) {
  
     // do something
  
}
  
  
Assuming &lt;T&gt; is a string, you could then write:
  
  
list.Intersect("scott", "guthrie")
  
  
  
Hope this helps,
  
  
Scott 
  
</description><link>http://ayende.com/2216/playing-with-orcas#comment1</link><guid>http://ayende.com/2216/playing-with-orcas#comment1</guid><pubDate>Fri, 16 Mar 2007 03:53:41 GMT</pubDate></item></channel></rss>