8 references to ObjectHasComponentSize
System.Private.CoreLib (8)
src\libraries\System.Private.CoreLib\src\System\Memory.cs (2)
293
else if (RuntimeHelpers.
ObjectHasComponentSize
(tmpObject))
408
else if (RuntimeHelpers.
ObjectHasComponentSize
(tmpObject))
src\libraries\System.Private.CoreLib\src\System\ReadOnlyMemory.cs (2)
215
else if (RuntimeHelpers.
ObjectHasComponentSize
(tmpObject))
323
else if (RuntimeHelpers.
ObjectHasComponentSize
(tmpObject))
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\GCHandle.cs (1)
131
if (RuntimeHelpers.
ObjectHasComponentSize
(target))
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\MemoryMarshal.cs (2)
281
if (RuntimeHelpers.
ObjectHasComponentSize
(obj))
409
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[].
src\System\Runtime\CompilerServices\RuntimeHelpers.CoreCLR.cs (1)
411
Debug.Assert(
ObjectHasComponentSize
(array));