我想将哈希表分配给数组结构请帮助下面是代码
public void SendCmdWithData(int IntCode, Hashtable Htbl)
{
DatawithCommandCode[] arrData = new DatawithCommandCode[Htbl.Count];
try {
for (int intVal = 0; intVal < Htbl.Count - 1; intVal++) {
}
}
catch (Exception) {}
}
我的结构
public struct DatawithCommandCode
{
public int CmdCode;
public int Value;
}