132 references to IsReferenceOrContainsReferences
GenerateDocumentationAndConfigFiles (10)
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (4)
738if (RuntimeHelpers.IsReferenceOrContainsReferences<TKey>()) 745if (RuntimeHelpers.IsReferenceOrContainsReferences<TValue>()) 817if (RuntimeHelpers.IsReferenceOrContainsReferences<TKey>()) 824if (RuntimeHelpers.IsReferenceOrContainsReferences<TValue>())
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
330if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (4)
390if (!RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 1116if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 1142if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 1176if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\Dependencies\Collections\TemporaryArray`1.cs (1)
344if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
Microsoft.AspNetCore.Diagnostics.Middleware (1)
src\Shared\BufferWriterPool\BufferWriter.cs (1)
98if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
Microsoft.CodeAnalysis (10)
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (4)
738if (RuntimeHelpers.IsReferenceOrContainsReferences<TKey>()) 745if (RuntimeHelpers.IsReferenceOrContainsReferences<TValue>()) 817if (RuntimeHelpers.IsReferenceOrContainsReferences<TKey>()) 824if (RuntimeHelpers.IsReferenceOrContainsReferences<TValue>())
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
330if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (4)
390if (!RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 1116if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 1142if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 1176if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\Dependencies\Collections\TemporaryArray`1.cs (1)
344if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
Microsoft.CodeAnalysis.Collections.Package (10)
Segmented\SegmentedDictionary`2.cs (4)
738if (RuntimeHelpers.IsReferenceOrContainsReferences<TKey>()) 745if (RuntimeHelpers.IsReferenceOrContainsReferences<TValue>()) 817if (RuntimeHelpers.IsReferenceOrContainsReferences<TKey>()) 824if (RuntimeHelpers.IsReferenceOrContainsReferences<TValue>())
Segmented\SegmentedHashSet`1.cs (1)
330if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
Segmented\SegmentedList`1.cs (4)
390if (!RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 1116if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 1142if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 1176if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
TemporaryArray`1.cs (1)
344if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
Microsoft.CodeAnalysis.Threading.Package (10)
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (4)
738if (RuntimeHelpers.IsReferenceOrContainsReferences<TKey>()) 745if (RuntimeHelpers.IsReferenceOrContainsReferences<TValue>()) 817if (RuntimeHelpers.IsReferenceOrContainsReferences<TKey>()) 824if (RuntimeHelpers.IsReferenceOrContainsReferences<TValue>())
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
330if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (4)
390if (!RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 1116if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 1142if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 1176if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\Dependencies\Collections\TemporaryArray`1.cs (1)
344if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
Microsoft.CodeAnalysis.Workspaces (10)
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (4)
738if (RuntimeHelpers.IsReferenceOrContainsReferences<TKey>()) 745if (RuntimeHelpers.IsReferenceOrContainsReferences<TValue>()) 817if (RuntimeHelpers.IsReferenceOrContainsReferences<TKey>()) 824if (RuntimeHelpers.IsReferenceOrContainsReferences<TValue>())
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
330if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (4)
390if (!RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 1116if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 1142if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 1176if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\Dependencies\Collections\TemporaryArray`1.cs (1)
344if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (10)
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (4)
738if (RuntimeHelpers.IsReferenceOrContainsReferences<TKey>()) 745if (RuntimeHelpers.IsReferenceOrContainsReferences<TValue>()) 817if (RuntimeHelpers.IsReferenceOrContainsReferences<TKey>()) 824if (RuntimeHelpers.IsReferenceOrContainsReferences<TValue>())
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
330if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (4)
390if (!RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 1116if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 1142if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 1176if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\Dependencies\Collections\TemporaryArray`1.cs (1)
344if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
src\Shared\BufferWriterPool\BufferWriter.cs (1)
98if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
Microsoft.Extensions.Http.Diagnostics (1)
src\Shared\BufferWriterPool\BufferWriter.cs (1)
98if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
System.Collections (9)
System\Collections\Generic\PriorityQueue.cs (2)
572if (RuntimeHelpers.IsReferenceOrContainsReferences<(TElement, TPriority)>()) 668if (RuntimeHelpers.IsReferenceOrContainsReferences<(TElement, TPriority)>())
System\Collections\Generic\SortedList.cs (4)
394if (RuntimeHelpers.IsReferenceOrContainsReferences<TKey>()) 398if (RuntimeHelpers.IsReferenceOrContainsReferences<TValue>()) 696if (RuntimeHelpers.IsReferenceOrContainsReferences<TKey>()) 700if (RuntimeHelpers.IsReferenceOrContainsReferences<TValue>())
System\Collections\Generic\Stack.cs (3)
73if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 237if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 258if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
System.Collections.Concurrent (3)
System\Collections\Concurrent\ConcurrentBag.cs (3)
888if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 905if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 998if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
System.Collections.Immutable (1)
System\Collections\Immutable\ImmutableArray_1.Builder.cs (1)
594if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
System.Linq (1)
System\Linq\SegmentedArrayBuilder.cs (1)
67if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
System.Private.CoreLib (43)
src\libraries\System.Private.CoreLib\src\System\Buffer.cs (1)
154if (!RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentQueueSegment.cs (1)
145if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (6)
909if (RuntimeHelpers.IsReferenceOrContainsReferences<TKey>()) 914if (RuntimeHelpers.IsReferenceOrContainsReferences<TValue>()) 1335if (RuntimeHelpers.IsReferenceOrContainsReferences<TKey>()) 1340if (RuntimeHelpers.IsReferenceOrContainsReferences<TValue>()) 1410if (RuntimeHelpers.IsReferenceOrContainsReferences<TKey>()) 1415if (RuntimeHelpers.IsReferenceOrContainsReferences<TValue>())
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\HashSet.cs (2)
330if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 577if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\List.cs (4)
323if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 988if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 1012if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 1044if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Queue.cs (3)
72if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 205if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 227if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ValueListBuilder.cs (2)
170if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 221if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\libraries\System.Private.CoreLib\src\System\ReadOnlySpan.cs (1)
105if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\RuntimeHelpers.cs (1)
183public static bool IsReferenceOrContainsReferences<T>() where T: allows ref struct => IsReferenceOrContainsReferences<T>();
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\CollectionsMarshal.cs (1)
153else if (count < list._size && RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\MemoryMarshal.cs (12)
33if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 56if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 118if (RuntimeHelpers.IsReferenceOrContainsReferences<TFrom>()) 120if (RuntimeHelpers.IsReferenceOrContainsReferences<TTo>()) 173if (RuntimeHelpers.IsReferenceOrContainsReferences<TFrom>()) 175if (RuntimeHelpers.IsReferenceOrContainsReferences<TTo>()) 471if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 490if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 510if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 529if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 552if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 574if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\SafeBuffer.cs (1)
405if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\libraries\System.Private.CoreLib\src\System\Span.cs (2)
110if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 296if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.cs (1)
303if (!RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.T.cs (1)
23if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) { goto CannotVectorize; }
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (1)
5418else if (!RuntimeHelpers.IsReferenceOrContainsReferences<TResult>())
src\System\GC.CoreCLR.cs (1)
803if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\System\Runtime\CompilerServices\AsyncHelpers.CoreCLR.cs (2)
261if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 544if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
System.Text.RegularExpressions (2)
System\Text\StructListBuilder.cs (2)
51ArrayPool<T>.Shared.Return(_array, clearArray: RuntimeHelpers.IsReferenceOrContainsReferences<T>()); 68ArrayPool<T>.Shared.Return(array, clearArray: RuntimeHelpers.IsReferenceOrContainsReferences<T>());
Test.Utilities (10)
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (4)
738if (RuntimeHelpers.IsReferenceOrContainsReferences<TKey>()) 745if (RuntimeHelpers.IsReferenceOrContainsReferences<TValue>()) 817if (RuntimeHelpers.IsReferenceOrContainsReferences<TKey>()) 824if (RuntimeHelpers.IsReferenceOrContainsReferences<TValue>())
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
330if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (4)
390if (!RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 1116if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 1142if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 1176if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\Dependencies\Collections\TemporaryArray`1.cs (1)
344if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())