<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:georss="http://www.georss.org/georss" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Central Florida Software Blog - C#</title>
    <link>http://www.centralflsoftware.com/blog/</link>
    <description>Innovation. Imagination. Delivered.</description>
    <language>en-us</language>
    <copyright>Christopher L Price</copyright>
    <lastBuildDate>Thu, 23 Jul 2009 13:12:54 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.3.9074.18820</generator>
    <managingEditor>blog@centralflsoftware.com</managingEditor>
    <webMaster>blog@centralflsoftware.com</webMaster>
    <item>
      <trackback:ping>http://www.centralflsoftware.com/blog/Trackback.aspx?guid=be275432-2624-47ee-817e-d7e4b59574e6</trackback:ping>
      <pingback:server>http://www.centralflsoftware.com/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.centralflsoftware.com/blog/PermaLink,guid,be275432-2624-47ee-817e-d7e4b59574e6.aspx</pingback:target>
      <dc:creator>Christopher Price</dc:creator>
      <georss:point>28.171599 -82.001953</georss:point>
      <wfw:comment>http://www.centralflsoftware.com/blog/CommentView,guid,be275432-2624-47ee-817e-d7e4b59574e6.aspx</wfw:comment>
      <wfw:commentRss>http://www.centralflsoftware.com/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=be275432-2624-47ee-817e-d7e4b59574e6</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <strong>C# 4.0 New Features: Optional and
Named Parameters</strong>
        <ul>
Optional Parameters 
<li>
removes the ceremony of method overloads to assign default values</li><li>
static void GenerateChart(bool copyToWord = false)
</li><li></li></ul>
        <ul>
Named Parameters 
<li>
call a method: GenerateChart(copyToWord: true);</li></ul>
Combining the two new features allow you to write concise code and not<br />
specify values that are not needed in methods with a large number of arguments: 
<ul><li>
Old: MethodA('A', null, null, null, false, null);</li><li>
New: MethodA(ArgA: 'A', ArgE: false);</li></ul><img width="0" height="0" src="http://www.centralflsoftware.com/blog/aggbug.ashx?id=be275432-2624-47ee-817e-d7e4b59574e6" /></body>
      <title>C# 4.0 New Features: Optional and Named Parameters</title>
      <guid isPermaLink="false">http://www.centralflsoftware.com/blog/PermaLink,guid,be275432-2624-47ee-817e-d7e4b59574e6.aspx</guid>
      <link>http://www.centralflsoftware.com/blog/2009/07/23/C40NewFeaturesOptionalAndNamedParameters.aspx</link>
      <pubDate>Thu, 23 Jul 2009 13:12:54 GMT</pubDate>
      <description>&lt;strong&gt;C# 4.0 New Features: Optional and Named Parameters&lt;/strong&gt; 
&lt;ul&gt;
Optional Parameters 
&lt;li&gt;
removes the ceremony of method overloads to assign default values&lt;/li&gt;
&lt;li&gt;
static void GenerateChart(bool copyToWord = false)&lt;li&gt;
&lt;/ul&gt;
&lt;ul&gt;
Named Parameters 
&lt;li&gt;
call a method: GenerateChart(copyToWord: true);&lt;/li&gt;
&lt;/ul&gt;
Combining the two new features allow you to write concise code and not&lt;br&gt;
specify values that are not needed in methods with a large number of arguments: 
&lt;ul&gt;
&lt;li&gt;
Old: MethodA('A', null, null, null, false, null);&lt;/li&gt;
&lt;li&gt;
New: MethodA(ArgA: 'A', ArgE: false);&lt;/li&gt;
&lt;/ul&gt;
&lt;img width="0" height="0" src="http://www.centralflsoftware.com/blog/aggbug.ashx?id=be275432-2624-47ee-817e-d7e4b59574e6" /&gt;</description>
      <comments>http://www.centralflsoftware.com/blog/CommentView,guid,be275432-2624-47ee-817e-d7e4b59574e6.aspx</comments>
      <category>.Net v4.0</category>
      <category>C#</category>
    </item>
  </channel>
</rss>