Example #1
0
        private void Dispose(bool disposing)
        {
            if (m_IPropertySystem != null)
            {
                if (!disposing)
                {
                    Debug.Fail("Failed to dispose PropertySystem");
                }

                Marshal.FinalReleaseComObject(m_IPropertySystem);
                m_IPropertySystem = null;
            }
            if (disposing)
            {
                GC.SuppressFinalize(this);
            }
        }
Example #2
0
        private void Dispose(bool disposing)
        {
            if (m_IPropertySystem != null)
            {
                if (!disposing)
                {
                    Debug.Fail("Failed to dispose PropertySystem");
                }

                Marshal.FinalReleaseComObject(m_IPropertySystem);
                m_IPropertySystem = null;
            }
            if (disposing)
            {
                GC.SuppressFinalize(this);
            }
        }