private void DisposeUI(UIRenderer uiRenderer) { uiRenderer.Dispose(); UIRenderer[] array = uiRenderer.Children.ToArray(); foreach (UIRenderer child in array) { DisposeUI(child); } }
private void DisposeUI(UIRenderer uiRenderer) { uiRenderer.Dispose(); ITreeNode[] array = uiRenderer.Children.ToArray(); foreach (ITreeNode child in array) { DisposeUI(child as UIRenderer); } }