예제 #1
0
        /// <summary>
        /// Clears this instance of all pooled values, disposing them if they are disposable.
        /// </summary>
        public void ClearAndDisposeValues()
        {
            foreach (DefaultDictionary <object, object> valuePool in this.valuePools.Values)
            {
                foreach (object value in valuePool.Values)
                {
                    Disposable.DisposeObjectIfAble(value);
                }

                valuePool.Clear();
            }
        }