예제 #1
0
파일: Format.cs 프로젝트: Habi-Thapa/csv
            public void Clear()
            {
                m_Format = null;
                ListPool <int> .Release(m_Splits);

                m_Splits = null;

                // Return the Formats we created
                for (int i = 0; i < m_FormatCache.Count; ++i)
                {
                    if (m_FormatCache[i] != null)
                    {
                        FormatItemPool.ReleaseFormat(m_FormatCache[i]);
                    }
                }
                m_FormatCache.Clear();
            }
예제 #2
0
        public void ReleaseToPool()
        {
            Clear();

            if (Format != null)
            {
                FormatItemPool.ReleaseFormat(Format);
            }
            Format = null;

            NestedDepth = 0;
            Alignment   = 0;

            foreach (var sel in Selectors)
            {
                FormatItemPool.ReleaseSelector(sel);
            }
            Selectors.Clear();
        }