16 references to GetValueRefOrNullRef
Microsoft.CodeAnalysis (3)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+PrivateMarshal.cs (1)
20=> ref SegmentedCollectionsMarshal.GetValueRefOrNullRef(dictionary._builder.GetOrCreateMutableDictionary(), key);
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+PrivateMarshal.cs (1)
49=> ref SegmentedCollectionsMarshal.GetValueRefOrNullRef(dictionary._dictionary, key);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2+PrivateMarshal.cs (1)
16/// <inheritdoc cref="SegmentedCollectionsMarshal.GetValueRefOrNullRef{TKey, TValue}(SegmentedDictionary{TKey, TValue}, TKey)"/>
Microsoft.CodeAnalysis.UnitTests (13)
Collections\SegmentedCollectionsMarshalTests.cs (13)
39SegmentedCollectionsMarshal.GetValueRefOrNullRef(dict, 1).Value = 3; 40SegmentedCollectionsMarshal.GetValueRefOrNullRef(dict, 1).Property = 4; 45ref Struct itemRef = ref SegmentedCollectionsMarshal.GetValueRefOrNullRef(dict, 2); 67Assert.True(Unsafe.IsNullRef(ref SegmentedCollectionsMarshal.GetValueRefOrNullRef(dict, 3))); 68Assert.Throws<NullReferenceException>(() => SegmentedCollectionsMarshal.GetValueRefOrNullRef(dict, 3).Value = 9); 95SegmentedCollectionsMarshal.GetValueRefOrNullRef(dict, 1).Value = 3; 96SegmentedCollectionsMarshal.GetValueRefOrNullRef(dict, 1).Property = 4; 101ref IntAsObject itemRef = ref SegmentedCollectionsMarshal.GetValueRefOrNullRef(dict, 2); 123Assert.True(Unsafe.IsNullRef(ref SegmentedCollectionsMarshal.GetValueRefOrNullRef(dict, 3))); 124Assert.Throws<NullReferenceException>(() => SegmentedCollectionsMarshal.GetValueRefOrNullRef(dict, 3).Value = 9); 139ref Struct itemRef = ref SegmentedCollectionsMarshal.GetValueRefOrNullRef(dict, 1); 707ref TValue expectedRef = ref SegmentedCollectionsMarshal.GetValueRefOrNullRef(dictionary, 0); 775ref T actualRef = ref SegmentedCollectionsMarshal.GetValueRefOrNullRef(dictionary, 0);