Exemplo n.º 1
0
        public StatCollection Copy()
        {
            StatCollection clone = new StatCollection();

            // Copy each reference across
            foreach (Stat c in base.List)
            {
                clone.Add(c);
            }

            return(clone);
        }
Exemplo n.º 2
0
        public void Init()
        {
            //检验集合的正确性
            IsValid = false;
            if (_gc == null || _gc.Count == 0)
            {
                return;
            }

            IsValid = true;

            Stat stat = new Stat();

            stat.Groups = _gc;
            _stats.Add(stat);
        }