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