<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	
	>
<channel>
	<title>Comments on: Found the first thing in Refactor! that I don&#8217;t like</title>
	<atom:link href="http://chillijam.co.uk/2009/04/08/found-the-first-thing-in-refactor-that-i-dont-like/feed/" rel="self" type="application/rss+xml" />
	<link>http://chillijam.co.uk/2009/04/08/found-the-first-thing-in-refactor-that-i-dont-like/</link>
	<description></description>
	<lastBuildDate>Sun, 10 Oct 2010 19:58:27 +0000</lastBuildDate>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.0.38</generator>
	<item>
		<title>By: Rory Becker</title>
		<link>http://chillijam.co.uk/2009/04/08/found-the-first-thing-in-refactor-that-i-dont-like/comment-page-1/#comment-253</link>
		<dc:creator><![CDATA[Rory Becker]]></dc:creator>
		<pubDate>Wed, 08 Apr 2009 21:06:00 +0000</pubDate>
		<guid isPermaLink="false">http://chillijam.co.uk/?p=230#comment-253</guid>
		<description><![CDATA[Yeah I can see what you  mean here... I previously felt similarly about how I had to &quot;Introduce Local&quot; on a string literal, before I could &quot;Promote to Parameter&quot;. This has been rectified in recent builds]]></description>
		<content:encoded><![CDATA[<p>Yeah I can see what you  mean here&#8230; I previously felt similarly about how I had to &#8220;Introduce Local&#8221; on a string literal, before I could &#8220;Promote to Parameter&#8221;. This has been rectified in recent builds</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc</title>
		<link>http://chillijam.co.uk/2009/04/08/found-the-first-thing-in-refactor-that-i-dont-like/comment-page-1/#comment-252</link>
		<dc:creator><![CDATA[Marc]]></dc:creator>
		<pubDate>Wed, 08 Apr 2009 15:45:30 +0000</pubDate>
		<guid isPermaLink="false">http://chillijam.co.uk/?p=230#comment-252</guid>
		<description><![CDATA[Thanks for the reply, Rory.  I&#039;m not sure I&#039;d class it as a bug - more of an annoyance.  I can see instances where you&#039;d want to be able to convert to a delegate, but this simple behaviour isn&#039;t one of them.  Here&#039;s a self-contained example in a console app.

namespace RefactorExample
{
using System;

    internal class Program
    {
        internal static void Main(string[] args)
        {
            foreach (MyProvider provider in MyProvider.createProviderArray())
            {
                Console.WriteLine(provider.Name);
            }
        }
    }

    public class MyProvider
    {
        public string Name { get; set; }

        public string Description { get; set; }

        public int Identifier { get; set; }

        public static MyProvider[] createProviderArray()
        {
            return new MyProvider[] {
                new MyProvider {Identifier = 0, Name=&quot;FirstTest&quot;, Description=&quot;This is the first test item.&quot;},
                new MyProvider {Identifier = 1, Name=&quot;SecondTest&quot;, Description=&quot;This is the second test item.&quot;},
                new MyProvider {Identifier = 2, Name=&quot;ThirdTest&quot;, Description=&quot;This is the third test item.&quot;},
                new MyProvider {Identifier = 3, Name=&quot;FourthTest&quot;, Description=&quot;This is the fourth test item.&quot;},
            };
        }
    }
}

Apologies for the poor adherence to coding standards - it&#039;s just an example. ;)]]></description>
		<content:encoded><![CDATA[<p>Thanks for the reply, Rory.  I&#8217;m not sure I&#8217;d class it as a bug &#8211; more of an annoyance.  I can see instances where you&#8217;d want to be able to convert to a delegate, but this simple behaviour isn&#8217;t one of them.  Here&#8217;s a self-contained example in a console app.</p>
<p>namespace RefactorExample<br />
{<br />
using System;</p>
<p>    internal class Program<br />
    {<br />
        internal static void Main(string[] args)<br />
        {<br />
            foreach (MyProvider provider in MyProvider.createProviderArray())<br />
            {<br />
                Console.WriteLine(provider.Name);<br />
            }<br />
        }<br />
    }</p>
<p>    public class MyProvider<br />
    {<br />
        public string Name { get; set; }</p>
<p>        public string Description { get; set; }</p>
<p>        public int Identifier { get; set; }</p>
<p>        public static MyProvider[] createProviderArray()<br />
        {<br />
            return new MyProvider[] {<br />
                new MyProvider {Identifier = 0, Name=&#8221;FirstTest&#8221;, Description=&#8221;This is the first test item.&#8221;},<br />
                new MyProvider {Identifier = 1, Name=&#8221;SecondTest&#8221;, Description=&#8221;This is the second test item.&#8221;},<br />
                new MyProvider {Identifier = 2, Name=&#8221;ThirdTest&#8221;, Description=&#8221;This is the third test item.&#8221;},<br />
                new MyProvider {Identifier = 3, Name=&#8221;FourthTest&#8221;, Description=&#8221;This is the fourth test item.&#8221;},<br />
            };<br />
        }<br />
    }<br />
}</p>
<p>Apologies for the poor adherence to coding standards &#8211; it&#8217;s just an example. <img src="http://chillijam.co.uk/wp-includes/images/smilies/icon_wink.gif" alt=";)" class="wp-smiley" /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rory Becker</title>
		<link>http://chillijam.co.uk/2009/04/08/found-the-first-thing-in-refactor-that-i-dont-like/comment-page-1/#comment-251</link>
		<dc:creator><![CDATA[Rory Becker]]></dc:creator>
		<pubDate>Wed, 08 Apr 2009 15:24:52 +0000</pubDate>
		<guid isPermaLink="false">http://chillijam.co.uk/?p=230#comment-251</guid>
		<description><![CDATA[I&#039;m not sure what you&#039;re using for &#039;provider&#039; and &#039;lps&#039; but I tried to recreate this with integers....

Note my C# is normally very poor so you&#039;ll have to give  me a little leeway..
-------------------------------------------------------------
            foreach (int i in new int[] { 3, 4, 5 })
            {
                Console.WriteLine(i);
            }
-------------------------------------------------------------

I was offered &#039;Introduce ForEach Action&#039;... Which when accepted, gave me....

-------------------------------------------------------------
Array.ForEach(new int[] { 3, 4, 5 }, Console.WriteLine);
-------------------------------------------------------------
Which seems good to me... I am using RefactorPro 9.1.2

Perhaps you have found a bug. It&#039;s hard to tell with the small code sample provided. If so you should report it with a fuller code example to the Support Center (http://www.devexpress.com/Support/Center/)]]></description>
		<content:encoded><![CDATA[<p>I&#8217;m not sure what you&#8217;re using for &#8216;provider&#8217; and &#8216;lps&#8217; but I tried to recreate this with integers&#8230;.</p>
<p>Note my C# is normally very poor so you&#8217;ll have to give  me a little leeway..<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
            foreach (int i in new int[] { 3, 4, 5 })<br />
            {<br />
                Console.WriteLine(i);<br />
            }<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>I was offered &#8216;Introduce ForEach Action&#8217;&#8230; Which when accepted, gave me&#8230;.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Array.ForEach(new int[] { 3, 4, 5 }, Console.WriteLine);<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Which seems good to me&#8230; I am using RefactorPro 9.1.2</p>
<p>Perhaps you have found a bug. It&#8217;s hard to tell with the small code sample provided. If so you should report it with a fuller code example to the Support Center (<a href="http://www.devexpress.com/Support/Center/" rel="nofollow">http://www.devexpress.com/Support/Center/</a>)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
