Convert Value type to String in C#


This content was proof-read by Grammarly. You can Try Grammary for FREE

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();

}

}

}
Convert Value type to String in C#
%d bloggers like this: