static public void Clear() { if (m_Recycler != null) { m_Recycler.Release(); } }
/// <summary> /// 释放工厂所创建的所有对象,包括空闲的对象 /// </summary> public static void Release() { m_isInit = false; foreach (var pair in m_mapObject) { pair.Value.ReleaseInFactory(); pair.Value.Dispose(); } m_mapObject.Clear(); m_recycler.Release(); m_viewRoot = null; }