Below is a sample sourecode snippet demonstrating how to Convert Value type to String in C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { internal class Program { // Abundantcode - function to convert value type to string private static void Main(string[] args) { int NumInt = 75; double NumDouble = 5000; Console.WriteLine(NumInt.ToString()); Console.WriteLine(NumDouble.ToString()); Console.ReadLine(); } } }
Leave a Reply