what is the best way to run some in another location as if it was at a certain location?
<p>Instead of running a code in a Initialize() method for example, i want to just write a line, something like somecode.run() and it will run everything for me, allowing me to write all the code in a different location for the sake of organization.</p>

<p>I want the code to act like it was in that spot though, so i have access to privates etc.</p>

<p>whats the best way to do this?</p>

<p>edit to clarify:</p>

<p>Here is an example</p>

<pre><code>public class game
{
    public void Initialize()
    { 
     I want to run some code here but I don't want to write it here, 
     I want to write it in another file for the sake of organization,
     and just  reference it somehow here, but yet still be able to use the
     privates as if it was in this spot
    }
}
</code></pre>
