Experts Exchange connects you with the people and services you need so you can get back to work.
string x = 1;
while this works:
string x = "1";
Open in new window
string x = "Hello";
x = "World";
x = 0.00; <-- This line would fail because 0.00 is a double.
if you do:
x = 0.00.ToString(); <-- This line would work because the value is converted to a string first.
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
Be seen. Boost your question’s priority for more expert views and faster solutions