© { JSL }
82
Text Box: struct Use
struct Use 
·usual dot operator to access field
wfield must be assigned before its value is used
wdefault c'tor default initialises fields zero/false/null
...
static void Main()
{
    Pair p;
    p.X = 0;
    Console.Write(p.X);
}
...
static void Main()
{
    Pair p = new Pair();
    Console.Write(p.X);
}
p.X
stack
0
?
p.Y
p.X
0
0
p.Y