Posts Tagged ‘c#’

Cannot implicitly convert type ‘int’ to ‘string’

When using C Sharp (C#) and you get the following debug error:

Cannot implicitly convert type ‘int’ to ‘string’

You need to convert the variable to string from an integer variable by the following:

Convert.ToString(XXX)

Where XXX is the integer variable that needs converting to a String type variable.

Be the first to comment - What do you think?  Posted by Capes - August 2, 2009 at 8:15 pm

Categories: Visual Studio Notes, c#   Tags: , , , , , , ,