367 references to AsRef
GenerateDocumentationAndConfigFiles (10)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+PrivateMarshal.cs (3)
22var dictionary = Volatile.Read(ref Unsafe.AsRef(in location._dictionary)); 31var dictionary = Interlocked.Exchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary); 40var dictionary = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary, comparand._dictionary);
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+PrivateMarshal.cs (3)
22var set = Volatile.Read(ref Unsafe.AsRef(in location._set)); 31var set = Interlocked.Exchange(ref Unsafe.AsRef(in location._set), value._set); 40var set = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._set), value._set, comparand._set);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+PrivateMarshal.cs (3)
22var list = Volatile.Read(ref Unsafe.AsRef(in location._list)); 31var list = Interlocked.Exchange(ref Unsafe.AsRef(in location._list), value._list); 40var list = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._list), value._list, comparand._list);
src\Dependencies\Collections\TemporaryArrayExtensions.cs (1)
42=> ref Unsafe.AsRef(in array);
Metrics (10)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+PrivateMarshal.cs (3)
22var dictionary = Volatile.Read(ref Unsafe.AsRef(in location._dictionary)); 31var dictionary = Interlocked.Exchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary); 40var dictionary = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary, comparand._dictionary);
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+PrivateMarshal.cs (3)
22var set = Volatile.Read(ref Unsafe.AsRef(in location._set)); 31var set = Interlocked.Exchange(ref Unsafe.AsRef(in location._set), value._set); 40var set = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._set), value._set, comparand._set);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+PrivateMarshal.cs (3)
22var list = Volatile.Read(ref Unsafe.AsRef(in location._list)); 31var list = Interlocked.Exchange(ref Unsafe.AsRef(in location._list), value._list); 40var list = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._list), value._list, comparand._list);
src\Dependencies\Collections\TemporaryArrayExtensions.cs (1)
42=> ref Unsafe.AsRef(in array);
Metrics.Legacy (10)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+PrivateMarshal.cs (3)
22var dictionary = Volatile.Read(ref Unsafe.AsRef(in location._dictionary)); 31var dictionary = Interlocked.Exchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary); 40var dictionary = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary, comparand._dictionary);
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+PrivateMarshal.cs (3)
22var set = Volatile.Read(ref Unsafe.AsRef(in location._set)); 31var set = Interlocked.Exchange(ref Unsafe.AsRef(in location._set), value._set); 40var set = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._set), value._set, comparand._set);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+PrivateMarshal.cs (3)
22var list = Volatile.Read(ref Unsafe.AsRef(in location._list)); 31var list = Interlocked.Exchange(ref Unsafe.AsRef(in location._list), value._list); 40var list = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._list), value._list, comparand._list);
src\Dependencies\Collections\TemporaryArrayExtensions.cs (1)
42=> ref Unsafe.AsRef(in array);
Microsoft.CodeAnalysis (10)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+PrivateMarshal.cs (3)
22var dictionary = Volatile.Read(ref Unsafe.AsRef(in location._dictionary)); 31var dictionary = Interlocked.Exchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary); 40var dictionary = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary, comparand._dictionary);
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+PrivateMarshal.cs (3)
22var set = Volatile.Read(ref Unsafe.AsRef(in location._set)); 31var set = Interlocked.Exchange(ref Unsafe.AsRef(in location._set), value._set); 40var set = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._set), value._set, comparand._set);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+PrivateMarshal.cs (3)
22var list = Volatile.Read(ref Unsafe.AsRef(in location._list)); 31var list = Interlocked.Exchange(ref Unsafe.AsRef(in location._list), value._list); 40var list = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._list), value._list, comparand._list);
src\Dependencies\Collections\TemporaryArrayExtensions.cs (1)
42=> ref Unsafe.AsRef(in array);
Microsoft.CodeAnalysis.Analyzers (10)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+PrivateMarshal.cs (3)
22var dictionary = Volatile.Read(ref Unsafe.AsRef(in location._dictionary)); 31var dictionary = Interlocked.Exchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary); 40var dictionary = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary, comparand._dictionary);
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+PrivateMarshal.cs (3)
22var set = Volatile.Read(ref Unsafe.AsRef(in location._set)); 31var set = Interlocked.Exchange(ref Unsafe.AsRef(in location._set), value._set); 40var set = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._set), value._set, comparand._set);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+PrivateMarshal.cs (3)
22var list = Volatile.Read(ref Unsafe.AsRef(in location._list)); 31var list = Interlocked.Exchange(ref Unsafe.AsRef(in location._list), value._list); 40var list = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._list), value._list, comparand._list);
src\Dependencies\Collections\TemporaryArrayExtensions.cs (1)
42=> ref Unsafe.AsRef(in array);
Microsoft.CodeAnalysis.AnalyzerUtilities (10)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+PrivateMarshal.cs (3)
22var dictionary = Volatile.Read(ref Unsafe.AsRef(in location._dictionary)); 31var dictionary = Interlocked.Exchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary); 40var dictionary = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary, comparand._dictionary);
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+PrivateMarshal.cs (3)
22var set = Volatile.Read(ref Unsafe.AsRef(in location._set)); 31var set = Interlocked.Exchange(ref Unsafe.AsRef(in location._set), value._set); 40var set = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._set), value._set, comparand._set);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+PrivateMarshal.cs (3)
22var list = Volatile.Read(ref Unsafe.AsRef(in location._list)); 31var list = Interlocked.Exchange(ref Unsafe.AsRef(in location._list), value._list); 40var list = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._list), value._list, comparand._list);
src\Dependencies\Collections\TemporaryArrayExtensions.cs (1)
42=> ref Unsafe.AsRef(in array);
Microsoft.CodeAnalysis.BannedApiAnalyzers (10)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+PrivateMarshal.cs (3)
22var dictionary = Volatile.Read(ref Unsafe.AsRef(in location._dictionary)); 31var dictionary = Interlocked.Exchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary); 40var dictionary = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary, comparand._dictionary);
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+PrivateMarshal.cs (3)
22var set = Volatile.Read(ref Unsafe.AsRef(in location._set)); 31var set = Interlocked.Exchange(ref Unsafe.AsRef(in location._set), value._set); 40var set = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._set), value._set, comparand._set);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+PrivateMarshal.cs (3)
22var list = Volatile.Read(ref Unsafe.AsRef(in location._list)); 31var list = Interlocked.Exchange(ref Unsafe.AsRef(in location._list), value._list); 40var list = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._list), value._list, comparand._list);
src\Dependencies\Collections\TemporaryArrayExtensions.cs (1)
42=> ref Unsafe.AsRef(in array);
Microsoft.CodeAnalysis.CodeStyle (10)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+PrivateMarshal.cs (3)
22var dictionary = Volatile.Read(ref Unsafe.AsRef(in location._dictionary)); 31var dictionary = Interlocked.Exchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary); 40var dictionary = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary, comparand._dictionary);
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+PrivateMarshal.cs (3)
22var set = Volatile.Read(ref Unsafe.AsRef(in location._set)); 31var set = Interlocked.Exchange(ref Unsafe.AsRef(in location._set), value._set); 40var set = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._set), value._set, comparand._set);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+PrivateMarshal.cs (3)
22var list = Volatile.Read(ref Unsafe.AsRef(in location._list)); 31var list = Interlocked.Exchange(ref Unsafe.AsRef(in location._list), value._list); 40var list = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._list), value._list, comparand._list);
src\Dependencies\Collections\TemporaryArrayExtensions.cs (1)
42=> ref Unsafe.AsRef(in array);
Microsoft.CodeAnalysis.Collections.Package (10)
Segmented\ImmutableSegmentedDictionary`2+PrivateMarshal.cs (3)
22var dictionary = Volatile.Read(ref Unsafe.AsRef(in location._dictionary)); 31var dictionary = Interlocked.Exchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary); 40var dictionary = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary, comparand._dictionary);
Segmented\ImmutableSegmentedHashSet`1+PrivateMarshal.cs (3)
22var set = Volatile.Read(ref Unsafe.AsRef(in location._set)); 31var set = Interlocked.Exchange(ref Unsafe.AsRef(in location._set), value._set); 40var set = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._set), value._set, comparand._set);
Segmented\ImmutableSegmentedList`1+PrivateMarshal.cs (3)
22var list = Volatile.Read(ref Unsafe.AsRef(in location._list)); 31var list = Interlocked.Exchange(ref Unsafe.AsRef(in location._list), value._list); 40var list = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._list), value._list, comparand._list);
TemporaryArrayExtensions.cs (1)
42=> ref Unsafe.AsRef(in array);
Microsoft.CodeAnalysis.CSharp (1)
Parser\Directives.cs (1)
132=> Interlocked.CompareExchange(ref Unsafe.AsRef(in location._directives), value._directives, null);
Microsoft.CodeAnalysis.Extensions.Package (10)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+PrivateMarshal.cs (3)
22var dictionary = Volatile.Read(ref Unsafe.AsRef(in location._dictionary)); 31var dictionary = Interlocked.Exchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary); 40var dictionary = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary, comparand._dictionary);
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+PrivateMarshal.cs (3)
22var set = Volatile.Read(ref Unsafe.AsRef(in location._set)); 31var set = Interlocked.Exchange(ref Unsafe.AsRef(in location._set), value._set); 40var set = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._set), value._set, comparand._set);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+PrivateMarshal.cs (3)
22var list = Volatile.Read(ref Unsafe.AsRef(in location._list)); 31var list = Interlocked.Exchange(ref Unsafe.AsRef(in location._list), value._list); 40var list = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._list), value._list, comparand._list);
src\Dependencies\Collections\TemporaryArrayExtensions.cs (1)
42=> ref Unsafe.AsRef(in array);
Microsoft.CodeAnalysis.Features (1)
QuickInfo\Presentation\TaggedTextExtensions.cs (1)
122=> ref Unsafe.AsRef(in builder);
Microsoft.CodeAnalysis.InteractiveHost (10)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+PrivateMarshal.cs (3)
22var dictionary = Volatile.Read(ref Unsafe.AsRef(in location._dictionary)); 31var dictionary = Interlocked.Exchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary); 40var dictionary = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary, comparand._dictionary);
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+PrivateMarshal.cs (3)
22var set = Volatile.Read(ref Unsafe.AsRef(in location._set)); 31var set = Interlocked.Exchange(ref Unsafe.AsRef(in location._set), value._set); 40var set = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._set), value._set, comparand._set);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+PrivateMarshal.cs (3)
22var list = Volatile.Read(ref Unsafe.AsRef(in location._list)); 31var list = Interlocked.Exchange(ref Unsafe.AsRef(in location._list), value._list); 40var list = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._list), value._list, comparand._list);
src\Dependencies\Collections\TemporaryArrayExtensions.cs (1)
42=> ref Unsafe.AsRef(in array);
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (10)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+PrivateMarshal.cs (3)
22var dictionary = Volatile.Read(ref Unsafe.AsRef(in location._dictionary)); 31var dictionary = Interlocked.Exchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary); 40var dictionary = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary, comparand._dictionary);
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+PrivateMarshal.cs (3)
22var set = Volatile.Read(ref Unsafe.AsRef(in location._set)); 31var set = Interlocked.Exchange(ref Unsafe.AsRef(in location._set), value._set); 40var set = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._set), value._set, comparand._set);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+PrivateMarshal.cs (3)
22var list = Volatile.Read(ref Unsafe.AsRef(in location._list)); 31var list = Interlocked.Exchange(ref Unsafe.AsRef(in location._list), value._list); 40var list = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._list), value._list, comparand._list);
src\Dependencies\Collections\TemporaryArrayExtensions.cs (1)
42=> ref Unsafe.AsRef(in array);
Microsoft.CodeAnalysis.PublicApiAnalyzers (10)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+PrivateMarshal.cs (3)
22var dictionary = Volatile.Read(ref Unsafe.AsRef(in location._dictionary)); 31var dictionary = Interlocked.Exchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary); 40var dictionary = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary, comparand._dictionary);
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+PrivateMarshal.cs (3)
22var set = Volatile.Read(ref Unsafe.AsRef(in location._set)); 31var set = Interlocked.Exchange(ref Unsafe.AsRef(in location._set), value._set); 40var set = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._set), value._set, comparand._set);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+PrivateMarshal.cs (3)
22var list = Volatile.Read(ref Unsafe.AsRef(in location._list)); 31var list = Interlocked.Exchange(ref Unsafe.AsRef(in location._list), value._list); 40var list = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._list), value._list, comparand._list);
src\Dependencies\Collections\TemporaryArrayExtensions.cs (1)
42=> ref Unsafe.AsRef(in array);
Microsoft.CodeAnalysis.ResxSourceGenerator (10)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+PrivateMarshal.cs (3)
22var dictionary = Volatile.Read(ref Unsafe.AsRef(in location._dictionary)); 31var dictionary = Interlocked.Exchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary); 40var dictionary = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary, comparand._dictionary);
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+PrivateMarshal.cs (3)
22var set = Volatile.Read(ref Unsafe.AsRef(in location._set)); 31var set = Interlocked.Exchange(ref Unsafe.AsRef(in location._set), value._set); 40var set = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._set), value._set, comparand._set);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+PrivateMarshal.cs (3)
22var list = Volatile.Read(ref Unsafe.AsRef(in location._list)); 31var list = Interlocked.Exchange(ref Unsafe.AsRef(in location._list), value._list); 40var list = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._list), value._list, comparand._list);
src\Dependencies\Collections\TemporaryArrayExtensions.cs (1)
42=> ref Unsafe.AsRef(in array);
Microsoft.CodeAnalysis.Threading.Package (10)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+PrivateMarshal.cs (3)
22var dictionary = Volatile.Read(ref Unsafe.AsRef(in location._dictionary)); 31var dictionary = Interlocked.Exchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary); 40var dictionary = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary, comparand._dictionary);
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+PrivateMarshal.cs (3)
22var set = Volatile.Read(ref Unsafe.AsRef(in location._set)); 31var set = Interlocked.Exchange(ref Unsafe.AsRef(in location._set), value._set); 40var set = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._set), value._set, comparand._set);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+PrivateMarshal.cs (3)
22var list = Volatile.Read(ref Unsafe.AsRef(in location._list)); 31var list = Interlocked.Exchange(ref Unsafe.AsRef(in location._list), value._list); 40var list = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._list), value._list, comparand._list);
src\Dependencies\Collections\TemporaryArrayExtensions.cs (1)
42=> ref Unsafe.AsRef(in array);
Microsoft.CodeAnalysis.UnitTests (8)
Collections\ImmutableSegmentedListBuilderTest.cs (1)
383ref var unsafeRef = ref Unsafe.AsRef(in safeRef);
Collections\ImmutableSegmentedListTest.cs (1)
818ref var unsafeRef = ref Unsafe.AsRef(in safeRef);
Collections\SegmentedCollectionsMarshalTests.cs (6)
202Assert.True(Unsafe.IsNullRef(ref Unsafe.AsRef(in SegmentedCollectionsMarshal.GetValueRefOrNullRef(dict, 3)))); 249Assert.True(Unsafe.IsNullRef(ref Unsafe.AsRef(in SegmentedCollectionsMarshal.GetValueRefOrNullRef(dict, 3)))); 446ref T actualRef = ref Unsafe.AsRef(in immutableList.ItemRef(0)); 512ref T expectedRef = ref Unsafe.AsRef(in immutableList.ItemRef(0)); 708ref TValue actualRef = ref Unsafe.AsRef(in SegmentedCollectionsMarshal.GetValueRefOrNullRef(immutableDictionary, 0)); 774ref T expectedRef = ref Unsafe.AsRef(in SegmentedCollectionsMarshal.GetValueRefOrNullRef(immutableDictionary, 0));
Microsoft.CodeAnalysis.Workspaces (10)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+PrivateMarshal.cs (3)
22var dictionary = Volatile.Read(ref Unsafe.AsRef(in location._dictionary)); 31var dictionary = Interlocked.Exchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary); 40var dictionary = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary, comparand._dictionary);
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+PrivateMarshal.cs (3)
22var set = Volatile.Read(ref Unsafe.AsRef(in location._set)); 31var set = Interlocked.Exchange(ref Unsafe.AsRef(in location._set), value._set); 40var set = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._set), value._set, comparand._set);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+PrivateMarshal.cs (3)
22var list = Volatile.Read(ref Unsafe.AsRef(in location._list)); 31var list = Interlocked.Exchange(ref Unsafe.AsRef(in location._list), value._list); 40var list = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._list), value._list, comparand._list);
src\Dependencies\Collections\TemporaryArrayExtensions.cs (1)
42=> ref Unsafe.AsRef(in array);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (10)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+PrivateMarshal.cs (3)
22var dictionary = Volatile.Read(ref Unsafe.AsRef(in location._dictionary)); 31var dictionary = Interlocked.Exchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary); 40var dictionary = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary, comparand._dictionary);
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+PrivateMarshal.cs (3)
22var set = Volatile.Read(ref Unsafe.AsRef(in location._set)); 31var set = Interlocked.Exchange(ref Unsafe.AsRef(in location._set), value._set); 40var set = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._set), value._set, comparand._set);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+PrivateMarshal.cs (3)
22var list = Volatile.Read(ref Unsafe.AsRef(in location._list)); 31var list = Interlocked.Exchange(ref Unsafe.AsRef(in location._list), value._list); 40var list = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._list), value._list, comparand._list);
src\Dependencies\Collections\TemporaryArrayExtensions.cs (1)
42=> ref Unsafe.AsRef(in array);
Microsoft.Extensions.Caching.Hybrid (4)
Internal\BufferChunk.cs (2)
83Unsafe.AsRef(in this) = default; // anti foot-shotgun double-return guard; not 100%, but worth doing 97Unsafe.AsRef(in copy._lengthAndPoolFlag) &= ~FlagReturnToPool;
Internal\DefaultHybridCache.CacheItem.cs (1)
44=> Unsafe.AsRef(in _creationTimestamp) = timestamp;
Internal\DefaultHybridCache.cs (1)
60internal void DebugRemoveFeatures(CacheFeatures features) => Unsafe.AsRef(in _features) &= ~features;
Microsoft.Maui.Controls.BindingSourceGen (1)
EquatableArray.cs (1)
65 return Unsafe.As<T[]?, ImmutableArray<T>>(ref Unsafe.AsRef(in this.array));
Roslyn.Diagnostics.Analyzers (10)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+PrivateMarshal.cs (3)
22var dictionary = Volatile.Read(ref Unsafe.AsRef(in location._dictionary)); 31var dictionary = Interlocked.Exchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary); 40var dictionary = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary, comparand._dictionary);
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+PrivateMarshal.cs (3)
22var set = Volatile.Read(ref Unsafe.AsRef(in location._set)); 31var set = Interlocked.Exchange(ref Unsafe.AsRef(in location._set), value._set); 40var set = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._set), value._set, comparand._set);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+PrivateMarshal.cs (3)
22var list = Volatile.Read(ref Unsafe.AsRef(in location._list)); 31var list = Interlocked.Exchange(ref Unsafe.AsRef(in location._list), value._list); 40var list = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._list), value._list, comparand._list);
src\Dependencies\Collections\TemporaryArrayExtensions.cs (1)
42=> ref Unsafe.AsRef(in array);
System.Collections.Immutable (9)
System\Collections\Frozen\FrozenDictionary.cs (3)
567if (Unsafe.IsNullRef(ref Unsafe.AsRef(in valueRef))) 591!Unsafe.IsNullRef(ref Unsafe.AsRef(in GetValueRefOrNullRef(key))); 616if (!Unsafe.IsNullRef(ref Unsafe.AsRef(in valueRef)))
System\Collections\Immutable\ImmutableInterlocked.cs (6)
128T[]? oldArray = Volatile.Read(ref Unsafe.AsRef(in location.array)); 138T[]? interlockedResult = Interlocked.CompareExchange(ref Unsafe.AsRef(in location.array), newImmutableArray.array, oldArray); 175T[]? oldArray = Volatile.Read(ref Unsafe.AsRef(in location.array)); 185T[]? interlockedResult = Interlocked.CompareExchange(ref Unsafe.AsRef(in location.array), newImmutableArray.array, oldArray); 205return new ImmutableArray<T>(Interlocked.Exchange(ref Unsafe.AsRef(in location.array), value.array)); 219return new ImmutableArray<T>(Interlocked.CompareExchange(ref Unsafe.AsRef(in location.array), value.array, comparand.array));
System.Diagnostics.DiagnosticSource (3)
System\Diagnostics\ActivityCreationOptions.cs (3)
122Unsafe.AsRef(in _samplerTags) = new ActivityTagsCollection(); 139Unsafe.AsRef(in _context) = new ActivityContext(id, default, ActivityTraceFlags.None); 159internal void SetTraceState(string? traceState) => Unsafe.AsRef(in _traceState) = traceState;
System.Memory (1)
System\Buffers\SequenceReader.cs (1)
102Unsafe.AsRef(in _length) = Sequence.Length;
System.Private.CoreLib (75)
src\libraries\System.Private.CoreLib\src\System\Guid.cs (8)
248return Unsafe.As<GuidResult, Guid>(ref Unsafe.AsRef(in this)); 324Unsafe.AsRef(in result._a) = (int)(unix_ts_ms >> 16); 325Unsafe.AsRef(in result._b) = (short)(unix_ts_ms); 327Unsafe.AsRef(in result._c) = (short)((result._c & ~VersionMask) | Version7Value); 328Unsafe.AsRef(in result._d) = (byte)((result._d & ~Variant10xxMask) | Variant10xxValue); 1066ref int r = ref Unsafe.AsRef(in _a); 1084ref int rA = ref Unsafe.AsRef(in left._a); 1085ref int rB = ref Unsafe.AsRef(in right._a);
src\libraries\System.Private.CoreLib\src\System\Guid.Unix.cs (2)
29Unsafe.AsRef(in g._c) = (short)((g._c & ~VersionMask) | Version4Value); 31Unsafe.AsRef(in g._d) = (byte)((g._d & ~Variant10xxMask) | Variant10xxValue);
src\libraries\System.Private.CoreLib\src\System\Numerics\Matrix3x2.cs (2)
180return Unsafe.Add(ref Unsafe.AsRef(in AsROImpl()).X, row); 281return Unsafe.Add(ref Unsafe.AsRef(in M11), (row * ColumnCount) + column);
src\libraries\System.Private.CoreLib\src\System\Numerics\Matrix3x2.Impl.cs (1)
24internal readonly ref readonly Impl AsROImpl() => ref Unsafe.As<Matrix3x2, Impl>(ref Unsafe.AsRef(in this));
src\libraries\System.Private.CoreLib\src\System\Numerics\Matrix4x4.cs (4)
259return Unsafe.Add(ref Unsafe.AsRef(in impl.X), row); 309Unsafe.Add(ref Unsafe.AsRef(in impl.X), row) = value; 375return Unsafe.Add(ref Unsafe.AsRef(in M11), (row * ColumnCount) + column); 425Unsafe.Add(ref Unsafe.AsRef(in M11), (row * ColumnCount) + column) = value;
src\libraries\System.Private.CoreLib\src\System\Numerics\Matrix4x4.Impl.cs (1)
27internal readonly ref readonly Impl AsROImpl() => ref Unsafe.As<Matrix4x4, Impl>(ref Unsafe.AsRef(in this));
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector.cs (4)
1908ref readonly byte address = ref Unsafe.As<T, byte>(ref Unsafe.AsRef(in source)); 1924ref readonly byte address = ref Unsafe.As<T, byte>(ref Unsafe.Add(ref Unsafe.AsRef(in source), (nint)elementOffset)); 3485ref T address = ref Unsafe.As<Vector<T>, T>(ref Unsafe.AsRef(in vector)); 3493ref T address = ref Unsafe.As<Vector<T>, T>(ref Unsafe.AsRef(in vector));
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector2.cs (2)
704ref readonly byte address = ref Unsafe.As<float, byte>(ref Unsafe.AsRef(in source)); 714ref readonly byte address = ref Unsafe.As<float, byte>(ref Unsafe.Add(ref Unsafe.AsRef(in source), (nint)elementOffset));
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector3.cs (2)
737ref readonly byte address = ref Unsafe.As<float, byte>(ref Unsafe.AsRef(in source)); 747ref readonly byte address = ref Unsafe.As<float, byte>(ref Unsafe.Add(ref Unsafe.AsRef(in source), (nint)elementOffset));
src\libraries\System.Private.CoreLib\src\System\ReadOnlySpan.cs (1)
119_reference = ref Unsafe.AsRef(in reference);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\MemoryMarshal.cs (4)
93internal static unsafe ref T GetNonNullPinnableReference<T>(Span<T> span) => ref (span.Length != 0) ? ref Unsafe.AsRef(in span._reference) : ref Unsafe.AsRef<T>((void*)1); 100internal static unsafe ref T GetNonNullPinnableReference<T>(ReadOnlySpan<T> span) => ref (span.Length != 0) ? ref Unsafe.AsRef(in span._reference) : ref Unsafe.AsRef<T>((void*)1); 227new Span<T>(ref Unsafe.AsRef(in reference), length); 244new ReadOnlySpan<T>(ref Unsafe.AsRef(in reference), length);
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128.cs (6)
2275ref readonly byte address = ref Unsafe.As<T, byte>(ref Unsafe.AsRef(in source)); 2291ref readonly byte address = ref Unsafe.As<T, byte>(ref Unsafe.Add(ref Unsafe.AsRef(in source), (nint)elementOffset)); 4371ref T address = ref Unsafe.As<Vector128<T>, T>(ref Unsafe.AsRef(in vector)); 4379ref T address = ref Unsafe.As<Vector128<T>, T>(ref Unsafe.AsRef(in vector)); 4384internal static void SetLowerUnsafe<T>(in this Vector128<T> vector, Vector64<T> value) => Unsafe.AsRef(in vector._lower) = value; 4387internal static void SetUpperUnsafe<T>(in this Vector128<T> vector, Vector64<T> value) => Unsafe.AsRef(in vector._upper) = value;
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256.cs (6)
2368ref readonly byte address = ref Unsafe.As<T, byte>(ref Unsafe.AsRef(in source)); 2384ref readonly byte address = ref Unsafe.As<T, byte>(ref Unsafe.Add(ref Unsafe.AsRef(in source), (nint)elementOffset)); 4333ref T address = ref Unsafe.As<Vector256<T>, T>(ref Unsafe.AsRef(in vector)); 4341ref T address = ref Unsafe.As<Vector256<T>, T>(ref Unsafe.AsRef(in vector)); 4345internal static void SetLowerUnsafe<T>(in this Vector256<T> vector, Vector128<T> value) => Unsafe.AsRef(in vector._lower) = value; 4347internal static void SetUpperUnsafe<T>(in this Vector256<T> vector, Vector128<T> value) => Unsafe.AsRef(in vector._upper) = value;
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512.cs (6)
2394ref readonly byte address = ref Unsafe.As<T, byte>(ref Unsafe.AsRef(in source)); 2410ref readonly byte address = ref Unsafe.As<T, byte>(ref Unsafe.Add(ref Unsafe.AsRef(in source), (nint)elementOffset)); 4310ref T address = ref Unsafe.As<Vector512<T>, T>(ref Unsafe.AsRef(in vector)); 4318ref T address = ref Unsafe.As<Vector512<T>, T>(ref Unsafe.AsRef(in vector)); 4322internal static void SetLowerUnsafe<T>(in this Vector512<T> vector, Vector256<T> value) => Unsafe.AsRef(in vector._lower) = value; 4324internal static void SetUpperUnsafe<T>(in this Vector512<T> vector, Vector256<T> value) => Unsafe.AsRef(in vector._upper) = value;
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector64.cs (4)
2267ref readonly byte address = ref Unsafe.As<T, byte>(ref Unsafe.AsRef(in source)); 2283ref readonly byte address = ref Unsafe.As<T, byte>(ref Unsafe.Add(ref Unsafe.AsRef(in source), (nint)elementOffset)); 4267ref T address = ref Unsafe.As<Vector64<T>, T>(ref Unsafe.AsRef(in vector)); 4275ref T address = ref Unsafe.As<Vector64<T>, T>(ref Unsafe.AsRef(in vector));
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector64_1.cs (4)
160Unsafe.AsRef(in result._00) = left._00 & right._00; 177Unsafe.AsRef(in result._00) = left._00 | right._00; 252Unsafe.AsRef(in result._00) = left._00 ^ right._00; 343Unsafe.AsRef(in result._00) = ~vector._00;
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\AhoCorasick.cs (2)
102ref Unsafe.AsRef(in _startingAsciiChars)); 211ref Unsafe.AsRef(in _startingAsciiChars));
src\libraries\System.Private.CoreLib\src\System\Threading\Interlocked.cs (1)
576CompareExchange(ref Unsafe.AsRef(in location), 0, 0);
src\libraries\System.Private.CoreLib\src\System\Threading\Volatile.cs (14)
22Unsafe.As<bool, VolatileBoolean>(ref Unsafe.AsRef(in location)).Value; 36Unsafe.As<byte, VolatileByte>(ref Unsafe.AsRef(in location)).Value; 49long result = Read(ref Unsafe.As<double, long>(ref Unsafe.AsRef(in location))); 65Unsafe.As<short, VolatileInt16>(ref Unsafe.AsRef(in location)).Value; 79Unsafe.As<int, VolatileInt32>(ref Unsafe.AsRef(in location)).Value; 92(long)Unsafe.As<long, VolatileIntPtr>(ref Unsafe.AsRef(in location)).Value; 115Unsafe.As<IntPtr, VolatileIntPtr>(ref Unsafe.AsRef(in location)).Value; 130Unsafe.As<sbyte, VolatileSByte>(ref Unsafe.AsRef(in location)).Value; 145Unsafe.As<float, VolatileSingle>(ref Unsafe.AsRef(in location)).Value; 160Unsafe.As<ushort, VolatileUInt16>(ref Unsafe.AsRef(in location)).Value; 176Unsafe.As<uint, VolatileUInt32>(ref Unsafe.AsRef(in location)).Value; 190(ulong)Read(ref Unsafe.As<ulong, long>(ref Unsafe.AsRef(in location))); 206Unsafe.As<UIntPtr, VolatileUIntPtr>(ref Unsafe.AsRef(in location)).Value; 222Unsafe.As<T>(Unsafe.As<T, VolatileObject>(ref Unsafe.AsRef(in location)).Value);
src\System\Threading\Interlocked.CoreCLR.cs (1)
228CompareExchange(ref Unsafe.AsRef(in location), 0, 0);
System.Private.Windows.Core (64)
System\Value.cs (56)
605return new(Unsafe.As<T, bool>(ref Unsafe.AsRef(in value))); 607return new(Unsafe.As<T, byte>(ref Unsafe.AsRef(in value))); 609return new(Unsafe.As<T, sbyte>(ref Unsafe.AsRef(in value))); 611return new(Unsafe.As<T, char>(ref Unsafe.AsRef(in value))); 613return new(Unsafe.As<T, short>(ref Unsafe.AsRef(in value))); 615return new(Unsafe.As<T, int>(ref Unsafe.AsRef(in value))); 617return new(Unsafe.As<T, long>(ref Unsafe.AsRef(in value))); 619return new(Unsafe.As<T, ushort>(ref Unsafe.AsRef(in value))); 621return new(Unsafe.As<T, uint>(ref Unsafe.AsRef(in value))); 623return new(Unsafe.As<T, ulong>(ref Unsafe.AsRef(in value))); 625return new(Unsafe.As<T, float>(ref Unsafe.AsRef(in value))); 627return new(Unsafe.As<T, double>(ref Unsafe.AsRef(in value))); 629return new(Unsafe.As<T, DateTime>(ref Unsafe.AsRef(in value))); 631return new(Unsafe.As<T, DateTimeOffset>(ref Unsafe.AsRef(in value))); 633return new(Unsafe.As<T, Color>(ref Unsafe.AsRef(in value))); 636return new(Unsafe.As<T, bool?>(ref Unsafe.AsRef(in value))); 638return new(Unsafe.As<T, byte?>(ref Unsafe.AsRef(in value))); 640return new(Unsafe.As<T, sbyte?>(ref Unsafe.AsRef(in value))); 642return new(Unsafe.As<T, char?>(ref Unsafe.AsRef(in value))); 644return new(Unsafe.As<T, short?>(ref Unsafe.AsRef(in value))); 646return new(Unsafe.As<T, int?>(ref Unsafe.AsRef(in value))); 648return new(Unsafe.As<T, long?>(ref Unsafe.AsRef(in value))); 650return new(Unsafe.As<T, ushort?>(ref Unsafe.AsRef(in value))); 652return new(Unsafe.As<T, uint?>(ref Unsafe.AsRef(in value))); 654return new(Unsafe.As<T, ulong?>(ref Unsafe.AsRef(in value))); 656return new(Unsafe.As<T, float?>(ref Unsafe.AsRef(in value))); 658return new(Unsafe.As<T, double?>(ref Unsafe.AsRef(in value))); 660return new(Unsafe.As<T, DateTime?>(ref Unsafe.AsRef(in value))); 662return new(Unsafe.As<T, DateTimeOffset?>(ref Unsafe.AsRef(in value))); 665return new(Unsafe.As<T, ArraySegment<byte>>(ref Unsafe.AsRef(in value))); 667return new(Unsafe.As<T, ArraySegment<char>>(ref Unsafe.AsRef(in value))); 717value = Unsafe.As<Union, T>(ref Unsafe.AsRef(in _union)); 723value = Unsafe.As<Color, T>(ref Unsafe.AsRef(in color)); 728value = Unsafe.As<DateTime, T>(ref Unsafe.AsRef(in _union.DateTime)); 734value = Unsafe.As<DateTimeOffset, T>(ref Unsafe.AsRef(in dto)); 740value = Unsafe.As<DateTimeOffset, T>(ref Unsafe.AsRef(in dto)); 812value = Unsafe.As<int?, T>(ref Unsafe.AsRef(in @int)); 818value = Unsafe.As<long?, T>(ref Unsafe.AsRef(in @long)); 824value = Unsafe.As<bool?, T>(ref Unsafe.AsRef(in @bool)); 830value = Unsafe.As<float?, T>(ref Unsafe.AsRef(in single)); 836value = Unsafe.As<double?, T>(ref Unsafe.AsRef(in @double)); 842value = Unsafe.As<uint?, T>(ref Unsafe.AsRef(in @uint)); 848value = Unsafe.As<ulong?, T>(ref Unsafe.AsRef(in @ulong)); 854value = Unsafe.As<char?, T>(ref Unsafe.AsRef(in @char)); 860value = Unsafe.As<short?, T>(ref Unsafe.AsRef(in @short)); 866value = Unsafe.As<ushort?, T>(ref Unsafe.AsRef(in @ushort)); 872value = Unsafe.As<byte?, T>(ref Unsafe.AsRef(in @byte)); 878value = Unsafe.As<sbyte?, T>(ref Unsafe.AsRef(in @sbyte)); 884value = Unsafe.As<Color?, T>(ref Unsafe.AsRef(in color)); 890value = Unsafe.As<DateTime?, T>(ref Unsafe.AsRef(in dateTime)); 896value = Unsafe.As<DateTimeOffset?, T>(ref Unsafe.AsRef(in dto)); 902value = Unsafe.As<DateTimeOffset?, T>(ref Unsafe.AsRef(in dto)); 921value = Unsafe.As<NullableTemplate<byte>, T>(ref Unsafe.AsRef(in byteTemplate)); 926value = Unsafe.As<NullableTemplate<ushort>, T>(ref Unsafe.AsRef(in ushortTemplate)); 931value = Unsafe.As<NullableTemplate<uint>, T>(ref Unsafe.AsRef(in uintTemplate)); 936value = Unsafe.As<NullableTemplate<ulong>, T>(ref Unsafe.AsRef(in ulongTemplate));
System\Value.PackedColor.cs (1)
36CastColor castColor = Unsafe.As<Color, CastColor>(ref Unsafe.AsRef(in color));
System\Value.StraightCastFlag.cs (1)
18public override T To(in Value value) => Unsafe.As<Union, T>(ref Unsafe.AsRef(in value._union));
Windows\Win32\Foundation\BSTR.cs (1)
22Unsafe.AsRef(in this) = default;
Windows\Win32\System\Com\ComScope.cs (2)
49public static implicit operator T**(in ComScope<T> scope) => (T**)Unsafe.AsPointer(ref Unsafe.AsRef(in scope._value)); 52public static implicit operator void**(in ComScope<T> scope) => (void**)Unsafe.AsPointer(ref Unsafe.AsRef(in scope._value));
Windows\Win32\System\Com\IID.cs (1)
45public static Guid* NULL() => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_NULL));
Windows\Win32\System\Com\SafeArrayScope.cs (2)
257public static implicit operator SAFEARRAY**(in SafeArrayScope<T> scope) => (SAFEARRAY**)Unsafe.AsPointer(ref Unsafe.AsRef(in scope._value)); 260public static implicit operator void**(in SafeArrayScope<T> scope) => (void**)Unsafe.AsPointer(ref Unsafe.AsRef(in scope._value));
Test.Utilities (10)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+PrivateMarshal.cs (3)
22var dictionary = Volatile.Read(ref Unsafe.AsRef(in location._dictionary)); 31var dictionary = Interlocked.Exchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary); 40var dictionary = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary, comparand._dictionary);
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+PrivateMarshal.cs (3)
22var set = Volatile.Read(ref Unsafe.AsRef(in location._set)); 31var set = Interlocked.Exchange(ref Unsafe.AsRef(in location._set), value._set); 40var set = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._set), value._set, comparand._set);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+PrivateMarshal.cs (3)
22var list = Volatile.Read(ref Unsafe.AsRef(in location._list)); 31var list = Interlocked.Exchange(ref Unsafe.AsRef(in location._list), value._list); 40var list = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._list), value._list, comparand._list);
src\Dependencies\Collections\TemporaryArrayExtensions.cs (1)
42=> ref Unsafe.AsRef(in array);
Text.Analyzers (10)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+PrivateMarshal.cs (3)
22var dictionary = Volatile.Read(ref Unsafe.AsRef(in location._dictionary)); 31var dictionary = Interlocked.Exchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary); 40var dictionary = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._dictionary), value._dictionary, comparand._dictionary);
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+PrivateMarshal.cs (3)
22var set = Volatile.Read(ref Unsafe.AsRef(in location._set)); 31var set = Interlocked.Exchange(ref Unsafe.AsRef(in location._set), value._set); 40var set = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._set), value._set, comparand._set);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+PrivateMarshal.cs (3)
22var list = Volatile.Read(ref Unsafe.AsRef(in location._list)); 31var list = Interlocked.Exchange(ref Unsafe.AsRef(in location._list), value._list); 40var list = Interlocked.CompareExchange(ref Unsafe.AsRef(in location._list), value._list, comparand._list);
src\Dependencies\Collections\TemporaryArrayExtensions.cs (1)
42=> ref Unsafe.AsRef(in array);