Direct parameter Vs passing a class
<p>Assume that there is a class with 3 attributes.</p>

<p>Employee</p>

<ol>
<li>Name</li>
<li>Age</li>
<li>Sal</li>
</ol>

<p>I have a webmethod, <code>GetInfo</code>.</p>

<p>Does it make any difference with regard to performance for passing direct param vs. direct classs?</p>

<pre><code>GetInfo(Employee emp) // This will internally call emp.age &amp; return the values.

GetInfo(int age)
</code></pre>

<p>Any thoughts?</p>
