61 references to NullRef
Microsoft.AspNetCore.OutputCaching (2)
FormatterBinaryWriter.cs (2)
28root = ref Unsafe.NullRef<byte>(); // no buffer initially 129root = ref Unsafe.NullRef<byte>();
Microsoft.AspNetCore.Server.Kestrel.Core (4)
Internal\Http\HttpHeaders.Generated.cs (4)
7518ref StringValues values = ref Unsafe.NullRef<StringValues>(); 7929ref StringValues values = ref Unsafe.NullRef<StringValues>(); 8141ref StringValues values = ref Unsafe.NullRef<StringValues>(); 14826ref readonly StringValues values = ref Unsafe.NullRef<StringValues>();
System.Collections (1)
System\Collections\Generic\OrderedDictionary.cs (1)
635ref Entry entry = ref Unsafe.NullRef<Entry>();
System.Collections.Immutable (17)
System\Collections\Frozen\DefaultFrozenDictionary.AlternateLookup.cs (1)
56return ref Unsafe.NullRef<TValue>();
System\Collections\Frozen\DefaultFrozenDictionary.cs (1)
41return ref Unsafe.NullRef<TValue>();
System\Collections\Frozen\EmptyFrozenDictionary.cs (1)
29private protected override ref readonly TValue GetValueRefOrNullRefCore(TKey key) => ref Unsafe.NullRef<TValue>();
System\Collections\Frozen\FrozenDictionary.cs (1)
554public static readonly AlternateLookupDelegate<TAlternateKey> ReturnsNullRef = (_, _) => ref Unsafe.NullRef<TValue>();
System\Collections\Frozen\Int32\Int32FrozenDictionary.AlternateLookup.cs (1)
57return ref Unsafe.NullRef<TValue>();
System\Collections\Frozen\Int32\Int32FrozenDictionary.cs (1)
79return ref Unsafe.NullRef<TValue>();
System\Collections\Frozen\Integer\DenseIntegralFrozenDictionary.cs (2)
143return ref Unsafe.NullRef<TValue>(); 180return ref Unsafe.NullRef<TValue>();
System\Collections\Frozen\SmallFrozenDictionary.AlternateLookup.cs (1)
52return ref Unsafe.NullRef<TValue>();
System\Collections\Frozen\SmallFrozenDictionary.cs (1)
49return ref Unsafe.NullRef<TValue>();
System\Collections\Frozen\SmallValueTypeComparableFrozenDictionary.cs (1)
66return ref Unsafe.NullRef<TValue>();
System\Collections\Frozen\SmallValueTypeDefaultComparerFrozenDictionary.cs (1)
47return ref Unsafe.NullRef<TValue>();
System\Collections\Frozen\String\LengthBucketsFrozenDictionary.AlternateLookup.cs (1)
58return ref Unsafe.NullRef<TValue>();
System\Collections\Frozen\String\LengthBucketsFrozenDictionary.cs (1)
110return ref Unsafe.NullRef<TValue>();
System\Collections\Frozen\String\OrdinalStringFrozenDictionary.AlternateLookup.cs (1)
55return ref Unsafe.NullRef<TValue>();
System\Collections\Frozen\String\OrdinalStringFrozenDictionary.cs (1)
107return ref Unsafe.NullRef<TValue>();
System\Collections\Frozen\ValueTypeDefaultComparerFrozenDictionary.cs (1)
41return ref Unsafe.NullRef<TValue>();
System.Numerics.Tensors (13)
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (6)
46: ref Unsafe.NullRef<T>(); 81: ref Unsafe.NullRef<T>(); 105: ref Unsafe.NullRef<T>(); 159: ref Unsafe.NullRef<T>(); 186: ref Unsafe.NullRef<T>(); 380ref T ret = ref Unsafe.NullRef<T>();
System\Numerics\Tensors\netcore\Tensor_1.cs (1)
195ref T ret = ref Unsafe.NullRef<T>();
System\Numerics\Tensors\netcore\TensorSpan_1.cs (6)
44: ref Unsafe.NullRef<T>(); 61: ref Unsafe.NullRef<T>(); 73: ref Unsafe.NullRef<T>(); 105: ref Unsafe.NullRef<T>(); 117: ref Unsafe.NullRef<T>(); 276ref T ret = ref Unsafe.NullRef<T>();
System.Private.CoreLib (23)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (4)
404ref Entry entry = ref Unsafe.NullRef<Entry>(); 484value = ref Unsafe.NullRef<TValue>(); 805ref Entry entry = ref Unsafe.NullRef<Entry>(); 850value = ref Unsafe.NullRef<TValue>();
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\HashSet.cs (4)
470ref int bucket = ref Unsafe.NullRef<int>(); 631ref Entry entry = ref Unsafe.NullRef<Entry>(); 675value = ref Unsafe.NullRef<T>(); 1426ref int bucket = ref Unsafe.NullRef<int>();
src\libraries\System.Private.CoreLib\src\System\Memory.cs (1)
275ref T refToReturn = ref Unsafe.NullRef<T>();
src\libraries\System.Private.CoreLib\src\System\ReadOnlyMemory.cs (1)
197ref T refToReturn = ref Unsafe.NullRef<T>();
src\libraries\System.Private.CoreLib\src\System\ReadOnlySpan.cs (1)
292ref T ret = ref Unsafe.NullRef<T>();
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\ArrayMarshaller.cs (1)
199return ref Unsafe.NullRef<T>();
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\PointerArrayMarshaller.cs (1)
200return ref Unsafe.NullRef<byte>();
src\libraries\System.Private.CoreLib\src\System\Span.cs (1)
285ref T ret = ref Unsafe.NullRef<T>();
src\libraries\System.Private.CoreLib\src\System\TypedReference.cs (1)
26ref byte targetRef = ref Unsafe.NullRef<byte>();
src\System\Reflection\TypeNameResolver.CoreCLR.cs (1)
187assembly = RuntimeAssembly.InternalLoad(assemblyName, ref Unsafe.NullRef<StackCrawlMark>(),
src\System\Runtime\InteropServices\Marshal.CoreCLR.cs (5)
263structMarshalStub(ref structure.GetRawData(), (byte*)ptr, MarshalOperation.Cleanup, ref Unsafe.NullRef<CleanupWorkListElement?>()); 266structMarshalStub(ref structure.GetRawData(), (byte*)ptr, MarshalOperation.Marshal, ref Unsafe.NullRef<CleanupWorkListElement?>()); 291structMarshalStub(ref structure.GetRawData(), (byte*)ptr, MarshalOperation.Unmarshal, ref Unsafe.NullRef<CleanupWorkListElement?>()); 325structMarshalStub(ref Unsafe.NullRef<byte>(), (byte*)ptr, MarshalOperation.Cleanup, ref Unsafe.NullRef<CleanupWorkListElement?>());
src\System\StubHelpers.cs (2)
1541structMarshalStub(ref obj.GetRawData(), pNative, MarshalOperation.Unmarshal, ref Unsafe.NullRef<CleanupWorkListElement?>()); 1560structMarshalStub(ref obj.GetRawData(), pNative, MarshalOperation.Cleanup, ref Unsafe.NullRef<CleanupWorkListElement?>());
System.Text.Encodings.Web (1)
System\Text\Encodings\Web\OptimizedInboxTextEncoder.cs (1)
46allowedCodePointsBmp = ref Unsafe.NullRef<AllowedBmpCodePointsBitmap>();