public static ContentLoader AddRef() { if (m_singletonInstance == null) { m_singletonInstance = new ContentLoader(); } m_refCnt++; return m_singletonInstance; }
public void Release(bool disposing) { if (m_refCnt == 1) { if (disposing) { m_singletonInstance = null; } } m_refCnt--; }