Implemented interface member:
property
IsEmpty
System.Collections.Immutable.IBinaryTree.IsEmpty
50 references to IsEmpty
System.Collections.Immutable (50)
System\Collections\Immutable\ImmutableDictionary_2.HashBucket.cs (2)
225
if (_additionalElements.
IsEmpty
)
435
if (_bucket._additionalElements.
IsEmpty
)
System\Collections\Immutable\ImmutableHashSet_1.HashBucket.cs (2)
212
if (_additionalElements.
IsEmpty
)
358
if (_bucket._additionalElements.
IsEmpty
)
System\Collections\Immutable\ImmutableList_1.cs (3)
130
public bool IsEmpty => _root.
IsEmpty
;
1112
return root.
IsEmpty
1165
return root.
IsEmpty
? this.Clear() : new ImmutableList<T>(root);
System\Collections\Immutable\ImmutableList_1.Enumerator.cs (4)
207
while (!node.
IsEmpty
&& skipNodes != this.PreviousBranch(node)!.Count)
221
if (!node.
IsEmpty
)
273
if (!node.
IsEmpty
)
277
while (!node.
IsEmpty
)
System\Collections\Immutable\ImmutableList_1.Node.cs (39)
71
Debug.Assert(this.
IsEmpty
);
95
Debug.Assert(!this.
IsEmpty
);
307
if (this.
IsEmpty
)
327
if (this.
IsEmpty
)
355
if (this.
IsEmpty
)
372
if (this.
IsEmpty
)
393
if (this.
IsEmpty
)
429
if (_right.
IsEmpty
&& _left.
IsEmpty
)
433
else if (_right.
IsEmpty
&& !_left.
IsEmpty
)
437
else if (!_right.
IsEmpty
&& _left.
IsEmpty
)
446
while (!successor._left!.
IsEmpty
)
466
return result.
IsEmpty
|| result.IsBalanced ? result : result.Balance();
521
Debug.Assert(!this.
IsEmpty
);
677
if (this.
IsEmpty
|| count <= 0)
959
if (this.
IsEmpty
)
1067
if (this.
IsEmpty
)
1212
return this.
IsEmpty
? -1 : this.FindLastIndex(this.Count - 1, this.Count, match);
1234
return this.
IsEmpty
? -1 : this.FindLastIndex(startIndex, startIndex + 1, match);
1299
Debug.Assert(!this.
IsEmpty
);
1300
Debug.Assert(!_right!.
IsEmpty
);
1311
Debug.Assert(!this.
IsEmpty
);
1312
Debug.Assert(!_left!.
IsEmpty
);
1323
Debug.Assert(!this.
IsEmpty
);
1324
Debug.Assert(!_right!.
IsEmpty
);
1325
Debug.Assert(!_right!._left!.
IsEmpty
);
1341
Debug.Assert(!this.
IsEmpty
);
1342
Debug.Assert(!_left!.
IsEmpty
);
1343
Debug.Assert(!_left._right!.
IsEmpty
);
1363
Debug.Assert(!this.
IsEmpty
);
1404
Debug.Assert(!this.
IsEmpty
);
1416
Debug.Assert(!this.
IsEmpty
);
1466
Debug.Assert(!this.
IsEmpty
);
1491
Debug.Assert(!this.
IsEmpty
);
1515
Debug.Assert(!this.
IsEmpty
);
1555
Debug.Assert(!this.
IsEmpty
);
1606
private static bool Contains(Node node, T value, IEqualityComparer<T> equalityComparer) => !node.
IsEmpty
&& (equalityComparer.Equals(value, node._key) || Contains(node._left!, value, equalityComparer) || Contains(node._right!, value, equalityComparer));