public static bool Get_Bit(string RTUaddr)
{
bool Result = false;
int iRet;
//int a=0;
QPLC.GetDevice(RTUaddr,out iRet);
//a= Convert.ToString(iRet).ToString();
if (iRet ==1)
{
Result = true;
}
else
{
Result = false;
}
return Result;
}
为啥我这里会报错?- $exception {"未将对象引用设置到对象的实例。"} System.NullReferenceExcepti