Click here to Skip to main content
15,914,162 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi,
I am Going To One Interview. He Will Conduct System Test.Task Is To Convert given Number To String . I am Trying But Not Solved .So Please Give Me a Idea To Solve This Problem.
Posted
Comments
Rahul Rajat Singh 14-May-12 1:56am    
What do you mean. do you want 19 as "19" or "nineteen"

Hi,


VariableName.ToString() will solve ur problem...
 
Share this answer
 
hello,
C# syntax to convert a number (int) to string is very simple:

C#
string ReturnString(int number)
   {
       return number.ToString();
   }

this might give you some hint to solve your problem.
 
Share this answer
 
Simple google Search[^] return About 202,000,000 results (0.45 seconds).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900