Page 1 of 1

int to String

Posted: Fri Jul 08, 2011 4:38 am
by xeyyam
Hello.

Is any way to convert int to string in coding part . When i debug my code :

public bool isHoliday( int mounth , int day )
{
......
string temp = Convert.ToString(day);
.....
}

there always appear message showing line where i convert int to string.

int to String

Posted: Fri Jul 08, 2011 5:31 am
by Brendan
try

Code: Select all

string temp = day.ToString();