C# 如何将数组与使用点运算符的类一起使用
使用制度 我正在使用字符串[]talentSlots=新字符串[2]; 我想做一个代理。talentSlots=诸如此类的事情我该怎么做C# 如何将数组与使用点运算符的类一起使用,c#,arrays,class,C#,Arrays,Class,使用制度 我正在使用字符串[]talentSlots=新字符串[2]; 我想做一个代理。talentSlots=诸如此类的事情我该怎么做 可以使用数组初始值设定项 agent.talentSlots = new string[] {focusTalent,reputationTalent}; 请注意,可以推断数组类型:agent.talentSlots=new[]{focusTalent,信誉人才} agent.talentSlots = new string[] {focusTalent,r
可以使用数组初始值设定项
agent.talentSlots = new string[] {focusTalent,reputationTalent};
请注意,可以推断数组类型:
agent.talentSlots=new[]{focusTalent,信誉人才}
agent.talentSlots = new string[] {focusTalent,reputationTalent};