Posts Tagged c sharp
Cannot implicitly convert type ‘int’ to ‘string’
Posted by Capes in c#, Visual Studio Notes on August 2nd, 2009
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.