日期:2014-05-17 浏览次数:21056 次
//trans
public class Trans
{
public string name;
public double fix_x;
public double fix_y;
public Trans(string a, double b, double c)
{
this.name = a;
this.fix_x = b;
this.fix_y = c;
}
}
//Nails
public class Nails
{
public string name;
public string nail;
}
public static List<Trans> change(List<Trans> a,List<Nails> b)
{
List<Trans> Transf_new = new List<Trans>();
Trans nail_new;
foreach (Trans nail in a)
{
string c = nail.name;
foreach (Nails net in b)
{
if (nail.name == net.nail)
c = net.name;
}