请问下怎样实现在sendData中多传一些参数?
ASCIIEncoding encode = new ASCIIEncoding();
byte[] sendData = encode.GetBytes(i.Id.ToString(),i.BasePriority.ToString(),i.WorkingSet.ToString());
server.Send ( sendData , sendData.Length, temp[0] , Int32.Parse ( temp[1] ) ) ;
上面程序编译后,提示只能在:
byte[] sendData = encode.GetBytes(只能有1个参数才可以顺利编译)
ASCIIEncoding encode = new ASCIIEncoding();
byte[] sendData = encode.GetBytes(i.Id.ToString(),i.BasePriority.ToString(),i.WorkingSet.ToString());
server.Send ( sendData , sendData.Length, temp[0] , Int32.Parse ( temp[1] ) ) ;
上面程序编译后,提示只能在:
byte[] sendData = encode.GetBytes(只能有1个参数才可以顺利编译)
Process[] p = Process.GetProcesses();
foreach(Process i in p)
{
i.Id.ToString(),i.BasePriority.ToString(),i.WorkingSet.ToString()
}
上文中的参数是进程的几个参数