public StatCollection Copy() { StatCollection clone = new StatCollection(); // Copy each reference across foreach (Stat c in base.List) { clone.Add(c); } return(clone); }
public void Init() { //检验集合的正确性 IsValid = false; if (_gc == null || _gc.Count == 0) { return; } IsValid = true; Stat stat = new Stat(); stat.Groups = _gc; _stats.Add(stat); }