Mega Code Archive
Categories
/
C# Tutorial
/
Data Type
Using ToString() to Convert to a string
class MainClass { static void Main() { bool boolean = true; string text = boolean.ToString(); // Display "True" System.Console.WriteLine(text); } }