Beispiel #1
0
        private bool disposedValue = false; // To detect redundant calls

        protected override void Dispose(bool disposing)
        {
            if (!disposedValue)
            {
                if (disposing)
                {
                    UnLinkGrid();
                    Rows.Clear();
                    foreach (var r in RowList)
                    {
                        r.Dispose();
                    }
                    RowList.Clear();
                    MyDataBC = null;
                }

                disposedValue = true;
            }
            base.Dispose(disposing);
        }
Beispiel #2
0
        public void TestClear()
        {
            _condList.Clear();

            Assert.AreEqual(0, _condList.Count);
        }