Exemple #1
0
 public ItemFileBaseEnumerator(ItemFileBase file)
 {
     m_file = file;
 }
Exemple #2
0
        // 完整复制一个集合对象
        public void Copy(ItemFileBase file)
        {
            // 加写锁
            this.m_lock.AcquireWriterLock(m_nLockTimeout);
            try
            {
                this.Clear();

                foreach (Item item in file)
                {
                    this.Add(item);
                }
            }
            finally
            {
                this.m_lock.ReleaseWriterLock();
            }
        }