struct abc
{
xxxxxxxxxxx
}
class Program
{
static void Main(string[] args)
{
abc ?????;
}
}
}
如果这个结构名想用变量怎么办?
abc ?????;
这个就是这样定义的,没错啊,你再把问题说清楚点
没事了,我其实不用一定要把结构名用变量
没看懂你说的啊。。。
用字典:
Dictionary<string, abc> dict = new Dictionary<string, abc>();
dict.Add("变量名", new abc());
访问:
dict[""变量名].xxxxxxxxxxx