<?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>Slides and Demos from BorCon</title><link>http://blogs.msdn.com/brada/archive/2004/09/23/233387.aspx</link><description>Last week I had a good time at BorCon giving the CLR 2.0 pitch. As promised here are my slides and demos . Overall I thought the presentation when well.. I didn’t have any demo’s crash on me! One of my favorite parts of the presentation was getting to</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Slides and Demos from BorCon</title><link>http://blogs.msdn.com/brada/archive/2004/09/23/233387.aspx#233406</link><pubDate>Thu, 23 Sep 2004 15:06:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:233406</guid><dc:creator>Panos Theofanopoulos</dc:creator><description>if elements is null then elements.Length does not throw an exception ?</description></item><item><title>re: Slides and Demos from BorCon</title><link>http://blogs.msdn.com/brada/archive/2004/09/23/233387.aspx#233449</link><pubDate>Thu, 23 Sep 2004 16:28:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:233449</guid><dc:creator>Chuck Jazdzewski</dc:creator><description>Even if it didn't you would crash on the very next line because 0 * 2 is still 0. &lt;br&gt;&lt;br&gt;This code should read,&lt;br&gt;&lt;br&gt;// ** hypothetical syntax from Danny Thorpe **&lt;br&gt;&lt;br&gt;type&lt;br&gt;   List&amp;lt;T&amp;gt; = class&lt;br&gt;   private&lt;br&gt;      FEements: array of T;&lt;br&gt;      FCount: Integer;&lt;br&gt;      function GetItems(index: Integer): T;&lt;br&gt;      procedure SetItems(index: Integer; value: T);&lt;br&gt;   public&lt;br&gt;      procedure Add(element: T);&lt;br&gt;      property Items[index: Integer]: T read GetItems write SetItems default;&lt;br&gt;      property Count: Integer read FCount;&lt;br&gt;   end;&lt;br&gt;&lt;br&gt;procedure List&amp;lt;T&amp;gt;.Add(element: T);&lt;br&gt;begin&lt;br&gt;  if not Assigned(FElements) then&lt;br&gt;    SetLength(FElements, 4)&lt;br&gt;  else if FElements.Length = FCount then&lt;br&gt;     SetLength(FEements, FCount * 2);&lt;br&gt;  FElements[FCount] := element;&lt;br&gt;  Inc(FCount);&lt;br&gt;end;&lt;br&gt;&lt;br&gt;function List&amp;lt;T&amp;gt;.GetItems(index: Integer): T;&lt;br&gt;begin&lt;br&gt;  Result := FElements[index];&lt;br&gt;end;&lt;br&gt;&lt;br&gt;procedure List&amp;lt;T&amp;gt;.SetItems(index: Integer; value: T);&lt;br&gt;begin&lt;br&gt;  FElements[index] := value;&lt;br&gt;end;&lt;br&gt;&lt;br&gt;var&lt;br&gt;  intList: List&amp;lt;Integer&amp;gt;;&lt;br&gt;  i: Integer;&lt;br&gt;&lt;br&gt;begin&lt;br&gt;  intList := List&amp;lt;Integer&amp;gt;.Create;&lt;br&gt;  intList.Add(1);          // No boxing&lt;br&gt;  intList.Add(2);          // No boxing&lt;br&gt;  intList.Add(‘3’);        // Compile-time error&lt;br&gt;  i := intList[0];       // No cast required&lt;br&gt;end.&lt;br&gt;</description></item><item><title>Staffan Malmgrens blogg  &amp;raquo; Blog Archive   &amp;raquo; Quickies of the day</title><link>http://blogs.msdn.com/brada/archive/2004/09/23/233387.aspx#867935</link><pubDate>Tue, 24 Oct 2006 11:17:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:867935</guid><dc:creator>Staffan Malmgrens blogg  » Blog Archive   » Quickies of the day</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://externblog.tomtebo.org/2004/09/24/quickies_of_the_day-2"&gt;http://externblog.tomtebo.org/2004/09/24/quickies_of_the_day-2&lt;/a&gt;&lt;/p&gt;
</description></item></channel></rss>