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
;
1098
return root.
IsEmpty
1151
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
);
287
if (this.
IsEmpty
)
307
if (this.
IsEmpty
)
335
if (this.
IsEmpty
)
352
if (this.
IsEmpty
)
373
if (this.
IsEmpty
)
409
if (_right.
IsEmpty
&& _left.
IsEmpty
)
413
else if (_right.
IsEmpty
&& !_left.
IsEmpty
)
417
else if (!_right.
IsEmpty
&& _left.
IsEmpty
)
426
while (!successor._left!.
IsEmpty
)
446
return result.
IsEmpty
|| result.IsBalanced ? result : result.Balance();
501
Debug.Assert(!this.
IsEmpty
);
657
if (this.
IsEmpty
|| count <= 0)
939
if (this.
IsEmpty
)
1047
if (this.
IsEmpty
)
1192
return this.
IsEmpty
? -1 : this.FindLastIndex(this.Count - 1, this.Count, match);
1214
return this.
IsEmpty
? -1 : this.FindLastIndex(startIndex, startIndex + 1, match);
1279
Debug.Assert(!this.
IsEmpty
);
1280
Debug.Assert(!_right!.
IsEmpty
);
1291
Debug.Assert(!this.
IsEmpty
);
1292
Debug.Assert(!_left!.
IsEmpty
);
1303
Debug.Assert(!this.
IsEmpty
);
1304
Debug.Assert(!_right!.
IsEmpty
);
1305
Debug.Assert(!_right!._left!.
IsEmpty
);
1321
Debug.Assert(!this.
IsEmpty
);
1322
Debug.Assert(!_left!.
IsEmpty
);
1323
Debug.Assert(!_left._right!.
IsEmpty
);
1343
Debug.Assert(!this.
IsEmpty
);
1384
Debug.Assert(!this.
IsEmpty
);
1396
Debug.Assert(!this.
IsEmpty
);
1446
Debug.Assert(!this.
IsEmpty
);
1471
Debug.Assert(!this.
IsEmpty
);
1495
Debug.Assert(!this.
IsEmpty
);
1535
Debug.Assert(!this.
IsEmpty
);
1586
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));