
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Convert Integer to String in C#
To convert an integer to string in C#, use the ToString() method.
Set the integer for which you want the string ?
int num = 299;
Use the ToString() method to convert Integer to String ?
String s; int num = 299; s = num.ToString();
Example
You can try to run the following code to convert an integer to string in C# ?
using System; class MyApplication { static void Main(string[] args) { String s; int num = 299; s = num.ToString(); Console.WriteLine("String = "+s); Console.ReadLine(); } }
Output
String = 299
Advertisements