Un Registering short hand / Inline events in C#
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1348150/how-do-i-unregister-anonymous-event-handler">How do I Unregister ‘anonymous’ event handler</a>  </p>
</blockquote>



<p>In my c# method i am using </p>

<pre><code>this.Loaded+=(sender,e)=&gt;{ my code }; 
</code></pre>

<p>for executing the code on load time. But my issue is that i don't how to un register this chained events. I tried something similar to </p>

<pre><code>this.Loaded-=(sx,ex)=&gt;{}; 
</code></pre>

<p>but the event is not un registering. Any one please help me to solve this issue. </p>
