How can I have my Linq select return something different based on a parameter of my method?
<p>I have the following:</p>

<pre><code>var options = xxx
    .Select(x =&gt; new SelectListItem
    {
        Value = ((int) Enum.ToObject(t, x)).ToString(),
        Text = Regex.Replace(x.ToString(), "([A-Z])", " $1").Trim()
    });
</code></pre>

<p>This is part of a method that's called like this:</p>

<pre><code>GetSpacedOptions(bool zeroPad = false)
</code></pre>

<p>How can I make it so if the zeroPad is set to true then instead of returning 1,2,3,4,5 etc  that it returns "01","02" etc as the value in the select? If zeroPad is set to default or false then it needs to return 1,2 etc.</p>
