I am trying to write a code generator using a C # console application. Now, when I print this, I get an error message:
Console.WriteLine("sphere {{0}{1} {2} texture{Gold_Metal}}",
pre, i.ToString(), sprad.ToString());
It says "input in the wrong format." I checked that all the variables were strings, and they are. When i tried
Console.WriteLine("sphere {0}{1} {2} textureGold_Metal",
pre, i.ToString(), sprad.ToString());
It worked perfectly. Is there any way to fix this?
source
share