Java Double setScale and RoundingMode equivalent in C#?
<pre><code>  Double toBeTruncated = new Double("3.5789055");

    Double truncatedDouble = BigDecimal.valueOf(toBeTruncated)
        .setScale(3, RoundingMode.HALF_UP)
        .doubleValue();
    return String.valueOf(truncatedDouble);
</code></pre>

<p>What is the c# equivalent syntax for the code above?(I am trying reproduce the same logic in c#)</p>