2 writes to _root
System.Collections.Immutable (2)
System\Collections\Immutable\ImmutableList_1.cs (2)
34
internal ImmutableList() =>
_root
= Node.EmptyNode;
45
_root
= root;
44 references to _root
System.Collections.Immutable (44)
System\Collections\Immutable\ImmutableList_1.Builder.cs (1)
61
_root = list.
_root
;
System\Collections\Immutable\ImmutableList_1.cs (42)
124
public int BinarySearch(int index, int count, T item, IComparer<T>? comparer) =>
_root
.BinarySearch(index, count, item, comparer);
132
public bool IsEmpty =>
_root
.IsEmpty;
142
public int Count =>
_root
.Count;
173
public T this[int index] =>
_root
.ItemRef(index);
181
public ref readonly T ItemRef(int index) => ref
_root
.ItemRef(index);
209
ImmutableList<T>.Node result =
_root
.Add(value);
226
ImmutableList<T>.Node result =
_root
.AddRange(items);
252
return this.Wrap(
_root
.AddRange(items));
262
return this.Wrap(
_root
.Insert(index, item));
273
ImmutableList<T>.Node result =
_root
.InsertRange(index, items);
303
ImmutableList<T>.Node result =
_root
;
345
ImmutableList<T>.Node result =
_root
;
364
ImmutableList<T>.Node result =
_root
.RemoveAt(index);
383
return this.Wrap(
_root
.RemoveAll(match));
389
public ImmutableList<T> SetItem(int index, T value) => this.Wrap(
_root
.ReplaceAt(index, value));
414
public ImmutableList<T> Reverse() => this.Wrap(
_root
.Reverse());
422
public ImmutableList<T> Reverse(int index, int count) => this.Wrap(
_root
.Reverse(index, count));
428
public ImmutableList<T> Sort() => this.Wrap(
_root
.Sort());
442
return this.Wrap(
_root
.Sort(comparison));
454
public ImmutableList<T> Sort(IComparer<T>? comparer) => this.Wrap(
_root
.Sort(comparer));
477
return this.Wrap(
_root
.Sort(index, count, comparer));
507
public void CopyTo(T[] array) =>
_root
.CopyTo(array);
521
public void CopyTo(T[] array, int arrayIndex) =>
_root
.CopyTo(array, arrayIndex);
539
public void CopyTo(int index, T[] array, int arrayIndex, int count) =>
_root
.CopyTo(index, array, arrayIndex, count);
580
return ImmutableList<TOutput>.WrapNode(
_root
.ConvertAll(converter));
596
public bool Exists(Predicate<T> match) =>
_root
.Exists(match);
610
public T? Find(Predicate<T> match) =>
_root
.Find(match);
625
public ImmutableList<T> FindAll(Predicate<T> match) =>
_root
.FindAll(match);
640
public int FindIndex(Predicate<T> match) =>
_root
.FindIndex(match);
654
public int FindIndex(int startIndex, Predicate<T> match) =>
_root
.FindIndex(startIndex, match);
669
public int FindIndex(int startIndex, int count, Predicate<T> match) =>
_root
.FindIndex(startIndex, count, match);
683
public T? FindLast(Predicate<T> match) =>
_root
.FindLast(match);
698
public int FindLastIndex(Predicate<T> match) =>
_root
.FindLastIndex(match);
713
public int FindLastIndex(int startIndex, Predicate<T> match) =>
_root
.FindLastIndex(startIndex, match);
731
public int FindLastIndex(int startIndex, int count, Predicate<T> match) =>
_root
.FindLastIndex(startIndex, count, match);
757
public int IndexOf(T item, int index, int count, IEqualityComparer<T>? equalityComparer) =>
_root
.IndexOf(item, index, count, equalityComparer);
779
public int LastIndexOf(T item, int index, int count, IEqualityComparer<T>? equalityComparer) =>
_root
.LastIndexOf(item, index, count, equalityComparer);
794
public bool TrueForAll(Predicate<T> match) =>
_root
.TrueForAll(match);
803
public bool Contains(T value) =>
_root
.Contains(value, EqualityComparer<T>.Default);
985
void System.Collections.ICollection.CopyTo(Array array, int arrayIndex) =>
_root
.CopyTo(array, arrayIndex);
1091
public Enumerator GetEnumerator() => new Enumerator(
_root
);
1151
if (root !=
_root
)
System\Collections\Immutable\ImmutableList_1.Node.cs (1)
1558
return other.
_root
;