derived classes, parameters and performace
<p>Lets say I got this set up:</p>

<pre><code>class MainInfo
{
    public string path{get;set;}
    public string name{get;set;}
}

class MoreInfo : MainInfo
{
    // more variables and methods
}
</code></pre>

<p>And inside another class I got MoreInfo class declared as <code>public MoreInfo info;</code></p>

<p>In some other method I only need <code>MainInfo</code> information, now what I want to know is will there be any performace diffrence if I pass to some other method <code>info</code> casted as <code> MainInfo</code> like so: <code> (MainInfo)info</code> as a parameter insted of just passing in whole <code>info</code> and then in the method getting out only the information I need?</p>

<p>Thanks!</p>

<p><strong>EDIT:</strong>
Or if I pass a parameter like so <code>MainInfo in = (MainInfo)info;</code>. Is there any diffrence between these three?</p>
