61 references to NullRef
ILCompiler.Compiler (1)
src\runtime\src\coreclr\tools\Common\Compiler\TypeExtensions.cs (1)
409
return TryResolveConstraintMethodApprox(constrainedType, interfaceType, interfaceMethod, out forceRuntimeLookup, ref Unsafe.
NullRef
<DefaultInterfaceMethodResolution>());
ILCompiler.ReadyToRun (1)
src\runtime\src\coreclr\tools\Common\Compiler\TypeExtensions.cs (1)
409
return TryResolveConstraintMethodApprox(constrainedType, interfaceType, interfaceMethod, out forceRuntimeLookup, ref Unsafe.
NullRef
<DefaultInterfaceMethodResolution>());
Microsoft.AspNetCore.OutputCaching (2)
FormatterBinaryWriter.cs (2)
28
root = ref Unsafe.
NullRef
<byte>(); // no buffer initially
129
root = ref Unsafe.
NullRef
<byte>();
Microsoft.AspNetCore.Server.Kestrel.Core (4)
Internal\Http\HttpHeaders.Generated.cs (4)
7518
ref StringValues values = ref Unsafe.
NullRef
<StringValues>();
7929
ref StringValues values = ref Unsafe.
NullRef
<StringValues>();
8141
ref StringValues values = ref Unsafe.
NullRef
<StringValues>();
14826
ref readonly StringValues values = ref Unsafe.
NullRef
<StringValues>();
System.Collections (1)
System\Collections\Generic\OrderedDictionary.cs (1)
630
ref Entry entry = ref Unsafe.
NullRef
<Entry>();
System.Collections.Immutable (17)
System\Collections\Frozen\DefaultFrozenDictionary.AlternateLookup.cs (1)
56
return ref Unsafe.
NullRef
<TValue>();
System\Collections\Frozen\DefaultFrozenDictionary.cs (1)
41
return ref Unsafe.
NullRef
<TValue>();
System\Collections\Frozen\EmptyFrozenDictionary.cs (1)
29
private protected override ref readonly TValue GetValueRefOrNullRefCore(TKey key) => ref Unsafe.
NullRef
<TValue>();
System\Collections\Frozen\FrozenDictionary.cs (1)
555
public static readonly AlternateLookupDelegate<TAlternateKey> ReturnsNullRef = (_, _) => ref Unsafe.
NullRef
<TValue>();
System\Collections\Frozen\Int32\Int32FrozenDictionary.AlternateLookup.cs (1)
57
return ref Unsafe.
NullRef
<TValue>();
System\Collections\Frozen\Int32\Int32FrozenDictionary.cs (1)
79
return ref Unsafe.
NullRef
<TValue>();
System\Collections\Frozen\Integer\DenseIntegralFrozenDictionary.cs (2)
143
return ref Unsafe.
NullRef
<TValue>();
180
return ref Unsafe.
NullRef
<TValue>();
System\Collections\Frozen\SmallFrozenDictionary.AlternateLookup.cs (1)
52
return ref Unsafe.
NullRef
<TValue>();
System\Collections\Frozen\SmallFrozenDictionary.cs (1)
49
return ref Unsafe.
NullRef
<TValue>();
System\Collections\Frozen\SmallValueTypeComparableFrozenDictionary.cs (1)
66
return ref Unsafe.
NullRef
<TValue>();
System\Collections\Frozen\SmallValueTypeDefaultComparerFrozenDictionary.cs (1)
47
return ref Unsafe.
NullRef
<TValue>();
System\Collections\Frozen\String\LengthBucketsFrozenDictionary.AlternateLookup.cs (1)
58
return ref Unsafe.
NullRef
<TValue>();
System\Collections\Frozen\String\LengthBucketsFrozenDictionary.cs (1)
110
return ref Unsafe.
NullRef
<TValue>();
System\Collections\Frozen\String\OrdinalStringFrozenDictionary.AlternateLookup.cs (1)
55
return ref Unsafe.
NullRef
<TValue>();
System\Collections\Frozen\String\OrdinalStringFrozenDictionary.cs (1)
107
return ref Unsafe.
NullRef
<TValue>();
System\Collections\Frozen\ValueTypeDefaultComparerFrozenDictionary.cs (1)
41
return ref Unsafe.
NullRef
<TValue>();
System.DirectoryServices.Protocols (1)
src\runtime\src\libraries\Common\src\Interop\Interop.Ldap.cs (1)
195
public static ref CLong GetPinnableReference(BerVal managed) => ref (managed is null ? ref Unsafe.
NullRef
<CLong>() : ref managed.bv_len);
System.Net.Http (1)
System\Net\Http\Headers\HttpHeaders.cs (1)
1495
ref object valueRef = ref Unsafe.
NullRef
<object>();
System.Numerics.Tensors (13)
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (6)
43
: ref Unsafe.
NullRef
<T>();
78
: ref Unsafe.
NullRef
<T>();
102
: ref Unsafe.
NullRef
<T>();
156
: ref Unsafe.
NullRef
<T>();
183
: ref Unsafe.
NullRef
<T>();
377
ref T ret = ref Unsafe.
NullRef
<T>();
System\Numerics\Tensors\netcore\Tensor_1.cs (1)
195
ref T ret = ref Unsafe.
NullRef
<T>();
System\Numerics\Tensors\netcore\TensorSpan_1.cs (6)
41
: ref Unsafe.
NullRef
<T>();
58
: ref Unsafe.
NullRef
<T>();
70
: ref Unsafe.
NullRef
<T>();
102
: ref Unsafe.
NullRef
<T>();
114
: ref Unsafe.
NullRef
<T>();
273
ref T ret = ref Unsafe.
NullRef
<T>();
System.Private.CoreLib (18)
src\runtime\src\coreclr\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncHelpers.CoreCLR.cs (1)
142
return ref Unsafe.
NullRef
<byte>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (4)
404
ref Entry entry = ref Unsafe.
NullRef
<Entry>();
485
value = ref Unsafe.
NullRef
<TValue>();
806
ref Entry entry = ref Unsafe.
NullRef
<Entry>();
851
value = ref Unsafe.
NullRef
<TValue>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\HashSet.cs (4)
470
ref int bucket = ref Unsafe.
NullRef
<int>();
631
ref Entry entry = ref Unsafe.
NullRef
<Entry>();
675
value = ref Unsafe.
NullRef
<T>();
1434
ref int bucket = ref Unsafe.
NullRef
<int>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Memory.cs (1)
275
ref T refToReturn = ref Unsafe.
NullRef
<T>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\ReadOnlyMemory.cs (1)
197
ref T refToReturn = ref Unsafe.
NullRef
<T>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\ReadOnlySpan.cs (1)
293
ref T ret = ref Unsafe.
NullRef
<T>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\ArrayMarshaller.cs (1)
210
return ref Unsafe.
NullRef
<T>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\PointerArrayMarshaller.cs (1)
211
return ref Unsafe.
NullRef
<byte>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Span.cs (1)
286
ref T ret = ref Unsafe.
NullRef
<T>();
System\Reflection\DynamicInvokeInfo.cs (3)
197
scoped ref byte thisArg = ref Unsafe.
NullRef
<byte>();
265
scoped ref byte thisArg = ref Unsafe.
NullRef
<byte>();
331
scoped ref byte thisArg = ref Unsafe.
NullRef
<byte>();
System.Security.Cryptography (1)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X25519DiffieHellmanImplementation.Windows.cs (1)
80
in Unsafe.
NullRef
<Interop.BCrypt.BCryptBufferDesc>(),
System.Text.Encodings.Web (1)
System\Text\Encodings\Web\OptimizedInboxTextEncoder.cs (1)
46
allowedCodePointsBmp = ref Unsafe.
NullRef
<AllowedBmpCodePointsBitmap>();