using System;
namespace Array2
{
class Program
{
static void Main(string[] args)
{
object[] information = { "Gray", "14-Arid-4052", "Rawalpindi",21,3.80};
Console.WriteLine("DataType of value at index 0 is: {0}",information[0].GetType());
Console.WriteLine("DataType of value at index 1 is: {0}",information[1].GetType());
Console.WriteLine("DataType of value at index 2 is: {0}", information[2].GetType());
Console.WriteLine("DataType of value at index 3 is: {0}", information[3].GetType());
Console.WriteLine("DataType of value at index 4 is: {0}", information[4].GetType());
Console.ReadKey();
}
}
}
namespace Array2
{
class Program
{
static void Main(string[] args)
{
object[] information = { "Gray", "14-Arid-4052", "Rawalpindi",21,3.80};
Console.WriteLine("DataType of value at index 0 is: {0}",information[0].GetType());
Console.WriteLine("DataType of value at index 1 is: {0}",information[1].GetType());
Console.WriteLine("DataType of value at index 2 is: {0}", information[2].GetType());
Console.WriteLine("DataType of value at index 3 is: {0}", information[3].GetType());
Console.WriteLine("DataType of value at index 4 is: {0}", information[4].GetType());
Console.ReadKey();
}
}
}
Comments
Post a Comment