Moving A Method Inline - Resharper Possible
<p>I want to create an instance of <code>IEnumerable&lt;T&gt;</code> - I can do that by creating a method like</p>

<pre><code>public IEnumerator&lt;T&gt; MakeEnumerator(){
    yield return 1;
}
</code></pre>

<p>But I need to pass this Enumerator to another class and so wanted to see whether I could create this inline with a delegate</p>

<p>Is that possible </p>

<p>EDIT: What I would like to remove is something like this: </p>

<pre><code>new CustomClass(MakeEnumerator()) 
</code></pre>

<p>and replace with</p>

<pre><code>new CustomClass(delegate...  ) // The method is now inline 
</code></pre>
