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)
39
SegmentedCollectionsMarshal.
GetValueRefOrNullRef
(dict, 1).Value = 3;
40
SegmentedCollectionsMarshal.
GetValueRefOrNullRef
(dict, 1).Property = 4;
45
ref Struct itemRef = ref SegmentedCollectionsMarshal.
GetValueRefOrNullRef
(dict, 2);
67
Assert.True(Unsafe.IsNullRef(ref SegmentedCollectionsMarshal.
GetValueRefOrNullRef
(dict, 3)));
68
Assert.Throws<NullReferenceException>(() => SegmentedCollectionsMarshal.
GetValueRefOrNullRef
(dict, 3).Value = 9);
95
SegmentedCollectionsMarshal.
GetValueRefOrNullRef
(dict, 1).Value = 3;
96
SegmentedCollectionsMarshal.
GetValueRefOrNullRef
(dict, 1).Property = 4;
101
ref IntAsObject itemRef = ref SegmentedCollectionsMarshal.
GetValueRefOrNullRef
(dict, 2);
123
Assert.True(Unsafe.IsNullRef(ref SegmentedCollectionsMarshal.
GetValueRefOrNullRef
(dict, 3)));
124
Assert.Throws<NullReferenceException>(() => SegmentedCollectionsMarshal.
GetValueRefOrNullRef
(dict, 3).Value = 9);
139
ref Struct itemRef = ref SegmentedCollectionsMarshal.
GetValueRefOrNullRef
(dict, 1);
707
ref TValue expectedRef = ref SegmentedCollectionsMarshal.
GetValueRefOrNullRef
(dictionary, 0);
775
ref T actualRef = ref SegmentedCollectionsMarshal.
GetValueRefOrNullRef
(dictionary, 0);