Maha

Maha

  • NA
  • 0
  • 326.1k

ToString() and Casting

Sep 23 2013 9:48 AM
In this program ToString() method is function as casting, because it is converting one data type to other. I wish to know whether my understanding is correct.

using System;

class Program
{
static void Main()
{
int a = 4000;

string a1 = a.ToString();

Console.WriteLine(a1);

Console.ReadKey();
}
}


Answers (5)