How to convert double value into string value

I want to convert a double value into a string value, but when I am concatenating this string(double) value, it is changing the . to , and I can't manipulate this value. I tried to use String.Replace but didn't work too.

What I can do in this case. Here is my Code.

object[] campos = new object[1];
        campos[0] = (double)56.25566;

Parameters[1] = "gdinvdllo005.start.load.coleta.o(" + campos[0].ToString() + ")";
Jon Skeet
people
quotationmark

It sounds like your thread has a culture which uses "," as the decimal separator. The simplest approach is probably to call string.Format specifying the invariant culture:

Parameters[1] = string.Format(
    CultureInfo.InvariantCulture,
    "gdinvdllo005.start.load.coleta.o({0})",
    campos[0]);

people

See more on this question at Stackoverflow