java DecimalFomat in C#
<p>I have these code which I have converted from Java. Now I need to change this DecimalFormat in C# Syntex.</p>

<pre><code>private string formatValue(double dVal)
        {
            DecimalFormat df = new DecimalFormat();
            df.applyPattern("######.###");
            DecimalFormatSymbols dfs = new DecimalFormatSymbols();
            dfs.DecimalSeparator = '.';
            df.DecimalFormatSymbols = dfs;
            return df.format(dVal);
        }
</code></pre>

<p>Kindly help me to do the same.</p>

<p>Thanks!</p>
