How to replace ostringstream(C++) in C#

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • michael1996
    New Member
    • Nov 2015
    • 1

    #1

    How to replace ostringstream(C++) in C#

    Hello all , i have this part of code , and i don't know how to convert it to C# , can anybody explain me? Thanks for helping

    Code:
    string stringify(double x)
    {
    ostringstream o;
    if (!(o << x))
    return 0;
    return o.str();
    }
Working...