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