<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Many Questions: Generics Variance</title><link>http://blogs.msdn.com/peterhal/archive/2005/07/29/445123.aspx</link><description>One of the main benefits of the addition of generics to C# is the ability to easily create strongly typed collections using types in the System.Collections.Generics namespace. For example, you can create a variable of type List&amp;lt;int&amp;gt;, and the compiler</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>IL variance</title><link>http://blogs.msdn.com/peterhal/archive/2005/07/29/445123.aspx#445145</link><pubDate>Sat, 30 Jul 2005 00:31:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:445145</guid><dc:creator>Wesner Moise</dc:creator><description>Why would generic variance add too much complexity to C#, when IL already supports it.</description></item><item><title>re: Many Questions: Generics Variance</title><link>http://blogs.msdn.com/peterhal/archive/2005/07/29/445123.aspx#445163</link><pubDate>Sat, 30 Jul 2005 00:57:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:445163</guid><dc:creator>TAG</dc:creator><description>It's a Microsoft fault !! &lt;br&gt;&lt;br&gt;You was able to add additional methods something like this:&lt;br&gt;&lt;br&gt;class List&amp;lt;TItem&amp;gt; {&lt;br&gt; void AddRange&amp;lt;TOther&amp;gt;(List&amp;lt;TOther&amp;gt; list) where TOther: TItem { &lt;br&gt; }&lt;br&gt;}&lt;br&gt;</description></item><item><title>re: Many Questions: Generics Variance</title><link>http://blogs.msdn.com/peterhal/archive/2005/07/29/445123.aspx#445388</link><pubDate>Sat, 30 Jul 2005 16:28:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:445388</guid><dc:creator>Mort</dc:creator><description>In my opinion C# team should keep C# as the static/ type safe language and avoid adding too much difficult to understand new concepts or ones that would cause even more run-time surprises. However I would like to see these more advanced features in C# like language also. My suggestion is that you allow developers to use advanced C# features only in files that have, for example, extension .csa or .cs3 etc. So if developer needed these features that might cause more dynamic behaviour for example, they could use them in C# project but if a second person (maintenance programmer?) came to take over the project, he would notice from the extension immediately that there may be advanced concepts used in the code that you need to learn first.</description></item><item><title>Blog link of the week 30</title><link>http://blogs.msdn.com/peterhal/archive/2005/07/29/445123.aspx#445789</link><pubDate>Mon, 01 Aug 2005 00:00:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:445789</guid><dc:creator>Daniel Moth</dc:creator><description>Blog link of the week 30</description></item><item><title>re: Many Questions: Generics Variance</title><link>http://blogs.msdn.com/peterhal/archive/2005/07/29/445123.aspx#449404</link><pubDate>Tue, 09 Aug 2005 14:57:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:449404</guid><dc:creator>TAG</dc:creator><description>Your argument type validation code &amp;quot;item is S&amp;quot; is flawed. &lt;br&gt;It return False for null-reference values - but this is legal for interface contracts you are defining !</description></item><item><title>re: Many Questions: Generics Variance</title><link>http://blogs.msdn.com/peterhal/archive/2005/07/29/445123.aspx#450071</link><pubDate>Wed, 10 Aug 2005 23:37:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:450071</guid><dc:creator>peterhal</dc:creator><description>Good catch TAG, you are correct. The checks for item is S, should also permit null. &lt;br&gt;&lt;br&gt;Peter</description></item><item><title>
		Topics about Tour-eiffel		 | 		  Many Questions: Generics Variance</title><link>http://blogs.msdn.com/peterhal/archive/2005/07/29/445123.aspx#9559568</link><pubDate>Tue, 21 Apr 2009 18:54:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9559568</guid><dc:creator>
		Topics about Tour-eiffel		 | 		  Many Questions: Generics Variance</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://tour-eiffel.linkedz.info/2005/07/29/many-questions-generics-variance/"&gt;http://tour-eiffel.linkedz.info/2005/07/29/many-questions-generics-variance/&lt;/a&gt;&lt;/p&gt;
</description></item></channel></rss>