1
的價值如何在C#得到非公共成員
private void DataChangeHandler(object sender, DataChangeEventArgs e)
{
try
{
object obj = sender;
OpcGroup grp = (OpcGroup)sender;//i want the OPCgroup non public member value
if (InvokeRequired)
{
BeginInvoke(new DataChangeEventHandler(DataChangeHandler), new object[] { sender, e });
//return;
}
if (parameter.X == 0)
{
parameter.X = 1;
Thread th = new Thread(param.update);
th.Start(e);
}
}
catch(OPCException) { }
}