Call a block of a method only for the first call of the method
<p>I have a method and inside this method I have a block:</p>

<pre><code>public void method()
{
   [block instructions]
}
</code></pre>

<p>But this method is called twice in my program. I would like this block to be executed only one time and only for the first occurrence of the method. What would be the best and elegant way to do that?</p>
