OperableHierarchicalCollection - reword some comments

This commit is contained in:
John Colvin committed 2019-04-22 22:38:15 -05:00
1 parent 227179087d
commit 757fc0eab5
1 file changed
+2 -1
@@ -155,9 +155,10 @@ namespace bts.collections {
public void expand_all() {
_tree.expand_all();
if (_refresh.is_execution_deferred) {
// Do NOT attempt any optimizations (this collection was already out of sync with the tree).
_sync();
} else if (Count > 0) {
/// This simple optimization (rather than calling <see cref="sync"/>), leverages the knowledge that the relative order of the rows has not changed, and the only mutations will be inserts.
/// Rather than calling <see cref="sync"/>, this optimization leverages the fact that the relative order of the rows has not changed, and the only mutations will be inserts.
using (var en = _tree.rows.GetEnumerator()) {
int pos = 0;
while (en.MoveNext()) {