7 references to ObjectHasComponentSize
System.Private.CoreLib (7)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Memory.cs (2)
290
else if (RuntimeHelpers.
ObjectHasComponentSize
(tmpObject))
405
else if (RuntimeHelpers.
ObjectHasComponentSize
(tmpObject))
src\runtime\src\libraries\System.Private.CoreLib\src\System\ReadOnlyMemory.cs (2)
212
else if (RuntimeHelpers.
ObjectHasComponentSize
(tmpObject))
320
else if (RuntimeHelpers.
ObjectHasComponentSize
(tmpObject))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\GCHandle.cs (1)
134
if (RuntimeHelpers.
ObjectHasComponentSize
(target))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\MemoryMarshal.cs (2)
283
if (RuntimeHelpers.
ObjectHasComponentSize
(obj))
411
if (RuntimeHelpers.
ObjectHasComponentSize
(obj)) // Same check as in TryGetArray to confirm that obj is a T[] or a U[] which is blittable to a T[].