9 instantiations of SegmentedList
Microsoft.Build.Framework (9)
ImmutableSegmentedList`1.cs (3)
74
public static readonly ImmutableSegmentedList<T> Empty = new(new
SegmentedList
<T>());
145
var list = new
SegmentedList
<T> { value };
174
var list = new
SegmentedList
<T>(items);
ImmutableSegmentedList`1+ValueBuilder.cs (2)
78
_mutableList = new
SegmentedList
<T>(originalList._list);
110
_mutableList = new
SegmentedList
<T>();
RoslynEnumerable.cs (1)
18
return new
SegmentedList
<TSource>(source);
SegmentedList`1.cs (3)
365
var list = new
SegmentedList
<TOutput>(_size);
467
var list = new
SegmentedList
<T>();
627
var list = new
SegmentedList
<T>(count);
25 references to SegmentedList
Microsoft.Build.Framework (25)
ImmutableSegmentedList`1.cs (4)
76
private readonly
SegmentedList
<T> _list;
78
private ImmutableSegmentedList(
SegmentedList
<T> list)
145
var
list = new SegmentedList<T> { value };
174
var
list = new SegmentedList<T>(items);
ImmutableSegmentedList`1+Enumerator.cs (3)
14
private readonly
SegmentedList
<T> _list;
15
private
SegmentedList
<T>.Enumerator _enumerator;
17
internal Enumerator(
SegmentedList
<T> list)
ImmutableSegmentedList`1+PrivateInterlocked.cs (3)
19
var
list = Volatile.Read(ref Unsafe.AsRef(in location._list));
28
var
list = Interlocked.Exchange(ref Unsafe.AsRef(in location._list), value._list);
37
var
list = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._list), value._list, comparand._list);
ImmutableSegmentedList`1+ValueBuilder.cs (3)
25
private
SegmentedList
<T>? _mutableList;
35
private
SegmentedList
<T> ReadOnlyList => _mutableList ?? _list._list;
70
private
SegmentedList
<T> GetOrCreateMutableList()
RoslynEnumerable.cs (1)
13
public static
SegmentedList
<TSource> ToSegmentedList<TSource>(this IEnumerable<TSource> source)
SegmentedList`1.cs (11)
76
if (collection is
SegmentedList
<T> segmentedList)
358
public
SegmentedList
<TOutput> ConvertAll<TOutput>(Converter<T, TOutput> converter)
365
var
list = new SegmentedList<TOutput>(_size);
460
public
SegmentedList
<T> FindAll(Predicate<T> match)
467
var
list = new SegmentedList<T>();
610
public
SegmentedList
<T> GetRange(int index, int count)
627
var
list = new SegmentedList<T>(count);
772
else if (c is
SegmentedList
<T> list)
1166
private readonly
SegmentedList
<T> _list;
1171
internal Enumerator(
SegmentedList
<T> list)
1185
var
localList = _list;