Filter by Tags

Convert int to string?

Votes

3

3 0

How can I convert integer datatype to string in C# ?

Open E-School
Posted on : Sun, Jan 07, 2018
Views : 110
Comments

Ask Question

If you want to ask question you must LogIn or SignUp
Login SignUp

Answers (2)


2
int myInt = 1;
string myString = myInt.ToString();




OR

int myInt = 1;
string mystring = Convert.ToString(myInt);


Kamal Bansal
Wed, Jan 24, 2018
Loading...
Comments

Edit Answer

Submit

3

In C# we can convert an integer value into a string value by either making use of the ToString function in the int structure or by making use of the ToString function in the Convert class. For example, below we are converting an integer value into string by making use of the ToString function in the int structure

int number = 150;

string value = number.ToString();

For more information please go through the following article

http://openeschool.com/tutorial/3181/how-to-convert-an-int-to-string-using-csharp

Ravinder Singh
Thu, Jan 18, 2018
Loading...
Comments

Edit Answer

Submit
This answer will permanently deleted. Do you really want to delete this Answer ?
To Add your Answer Please
LogIn | SignUp

Quick Links

E-Magazines

@

Total Followers
Study Group Created
Study Group Joined
Following Teacher
Following Organization
Blog Articles Added
Questions Asked
Questions Answered
Jobs Posted
Total Members in Group
Questions asked by members
Tasks added in this Group

Please wait..

Ok

Login to Open ESchool OR Create your account    Login   SignUp