optional parameters, overloaded methods or properties
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/251868/should-you-declare-methods-using-overloads-or-optional-parameters-in-c-4-0">Should you declare methods using overloads or optional parameters in C# 4.0?</a>  </p>
</blockquote>



<p>Hi have a method that is increasingly getting more parameters.  The thing is that most of these parameters are optional as they will only affect the method in certain cases and are not needed for most instances that the method is called.</p>

<p>Now the question is should i use</p>

<ul>
<li><p>Optional parameters </p>

<p><code>public object MyMethod(string param1, string param2, string optionalParam = null)</code></p></li>
<li><p>Overloaded methods</p>

<p><code>public object MyMethod(string param1, string param2, null)</code></p>

<p><code>public object MyMethod(string param1, string param2, string optionalParam)</code></p></li>
<li><p>Properties</p></li>
</ul>

<p>Suggestions welcome</p>
