110,556
社区成员
发帖
与我相关
我的任务
分享
class cc
{
public string str = "";
public int i = 8;
public int getI()
{
return i;
}
}
struct myTestStruct
{
public List<string> strs;
public cc sc;
public void addstr(string yorStr)
{
if (strs == null)
{
strs = new List<string>();
}
strs.Add(yorStr);
}
}
myTestStruct myTest3()
{
myTestStruct testStuct = new myTestStruct();
testStuct.addstr("strstr");
return testStuct;
}