using System;
namespace TestArr
{
class Indix
{
public string i0 = null;
public string x0 = null;
public Indix(string i1, string x1)
{
i0 = i1;
x0 = x1;
}
}
class mainex
{
public mainex()
{
Indix[] m = new Indix[3];
m[0] = new Indix("this", "isit");
m[1] = new Indix("What", "For");
m[2] = new Indix("for", "it");
foreach (Indix v in m)
{
Console.WriteLine(v.ToString());
}
Console.ReadKey();
}
static void Main()
{
mainex h = new mainex();
}
}
}
The output is : output from console
But i want this output :
this isit
What For
for it
So what did i do wrong and what to consider in the future ?