31 references to IsEmpty
System.Collections.Immutable (31)
System\Collections\Immutable\ImmutableDictionary_2.cs (1)
1039
return root.
IsEmpty
? this.Clear() : new ImmutableDictionary<TKey, TValue>(root, _comparers, adjustedCountIfDifferentRoot);
System\Collections\Immutable\ImmutableHashSet_1.cs (4)
723
if (origin.Root.
IsEmpty
)
870
if (origin.Root.
IsEmpty
)
918
if (origin.Root.
IsEmpty
)
943
if (origin.Root.
IsEmpty
)
System\Collections\Immutable\SortedInt32KeyNode.cs (24)
186
if (node.
IsEmpty
)
218
if (node.
IsEmpty
)
265
Debug.Assert(!tree.
IsEmpty
);
267
if (tree._right!.
IsEmpty
)
284
Debug.Assert(!tree.
IsEmpty
);
286
if (tree._left!.
IsEmpty
)
303
Debug.Assert(!tree.
IsEmpty
);
305
if (tree._right!.
IsEmpty
)
322
Debug.Assert(!tree.
IsEmpty
);
324
if (tree._left!.
IsEmpty
)
341
Debug.Assert(!tree.
IsEmpty
);
356
Debug.Assert(!tree.
IsEmpty
);
366
Debug.Assert(!tree.
IsEmpty
);
378
Debug.Assert(!tree.
IsEmpty
);
409
if (this.
IsEmpty
)
464
if (this.
IsEmpty
)
481
if (_right.
IsEmpty
&& _left.
IsEmpty
)
485
else if (_right.
IsEmpty
&& !_left.
IsEmpty
)
489
else if (!_right.
IsEmpty
&& _left.
IsEmpty
)
498
while (!successor._left!.
IsEmpty
)
524
return result.
IsEmpty
? result : MakeBalanced(result);
System\Collections\Immutable\SortedInt32KeyNode.Enumerator.cs (2)
60
if (!_root.
IsEmpty
)
183
while (!node.
IsEmpty
)