public struct lll
{
public string s;
public string a;
}
public struct ppp
{
public float x;
public float z;
}
ppp[] q;
lll[] w;
w和q两个怎么相互转化
感谢
自定义方法,在里面写要怎么转化,例如
public ppp LLLToPPP(lll w)
{
ppp q;
q.x = Convert.ToSingle(w.s);
q.z = Convert.ToSingle(w.a);
return q;
}
public lll PPPToLLL(ppp q)
{
lll w;
w.s = q.x.ToString();
w.a = q.z.ToString();
return w;
}
可通过 json 进行