示例#1
0
        public void Remove(long id)
        {
            Tank Tank;

            this.idTanks.TryGetValue(id, out Tank);
            this.idTanks.Remove(id);
            Tank?.Dispose();
        }
示例#2
0
 public void ClearTanks()
 {
     foreach (Tank Tank in this.idTanks.Values)
     {
         Tank.Dispose();
     }
     this.idTanks.Clear();
 }
示例#3
0
        public override void Dispose()
        {
            if (this.IsDisposed)
            {
                return;
            }
            base.Dispose();

            foreach (Tank Tank in this.m_idTanks.Values)
            {
                Tank.Dispose();
            }



            this.m_idTanks.Clear();


            Instance = null;
        }