6 references to ItemRef
Microsoft.CodeAnalysis.UnitTests (6)
Collections\ImmutableSegmentedListTest.cs (4)
817
ref readonly var safeRef = ref list.
ItemRef
(1);
820
Assert.Equal(2, list.
ItemRef
(1));
824
Assert.Equal(4, list.
ItemRef
(1));
832
Assert.Throws<ArgumentOutOfRangeException>(() => list.
ItemRef
(5));
Collections\SegmentedCollectionsMarshalTests.cs (2)
446
ref T actualRef = ref Unsafe.AsRef(in immutableList.
ItemRef
(0));
512
ref T expectedRef = ref Unsafe.AsRef(in immutableList.
ItemRef
(0));