Enable Disable feature for Code Hide in C#
<p>I am working on optimizing an exe file which was developed in C#. I have changed some of the code which has increased performance but when I try to check-in the code to SVN source control my team told me that I could check in my code but I would have to hide my code by enabling and disabling functionality. </p>

<p>For example:</p>

<pre><code>IF Code Hide == True  
   execute original Code
else 
   execute new code.
</code></pre>

<p>How can I do that for every change I have made?  Do I need to write an if-else statement in all the places I have changed the code? Please suggest how can I do that.</p>
