using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
namespace AAAAAA
{
class AAA
{
public static void Main()
{
My m = new My();
m.x = 2;
m.y = 3;
Thread t = new Thread(new ThreadStart(m.C));
t.Start();
Console.Read();
}
}
class My
{
public int x?? y;
public void C()
{
Console.WriteLine("x={0}??y={1}"?? this.x?? this.y);
}
}
}

??????????x=2??y=3
??????????y?????????????
???????幫???public struct???壬?????????????????????????????????????????????????????????

 

view plaincopy to clipboardprint?
//????
struct RowCol
{
public int row;
public int col;
};
//???巽??
public void Output(Object rc)
{
RowCol rowCol = (RowCol)rc;
for (int i = 0; i < rowCol.row; i++)
{
for (int j = 0; j < rowCol.col; j++)
Console.Write("{0} "?? _char);
Console.Write("/n");
}
}