void DestroyChilds() { while (mChilds.Count > 0) { BaseWidget child = mChilds[0]; child.Dispose(); child = null; } }