1 Answers
I will share one code
using System;
namespace MyApplication
{
class Program
{
static void Main(string[] args)
{
int myInt = 23;
double myDouble = 25.25;
bool myBool = false;
Console.WriteLine(Convert.ToString(myInt)); // Convert int to string
Console.WriteLine(Convert.ToDouble(myInt)); // Convert int to double
Console.WriteLine(Convert.ToInt32(myDouble)); // Convert double to int
Console.WriteLine(Convert.ToString(myBool)); // Convert bool to string
}
}
}