@Shervan360 , Welcome to Microsoft Q&A, you could also read the Microsoft learning fundamentals to know how it allocates the objects efficiently.
First, GC can allocate memory for each new object continuously as long as the memory space.
Second, Allocating memory from the managed heap is faster than unmanaged memory allocation due to adding a value to a pointer.
Third, an application can access the objects quickly because the new objects are stored contiguously in the managed heap.
From the above points, We could know that Allocates objects on the managed heap efficiently.
Hope my explanation could help you.
Best Regards,
Jack
If the answer is the right solution, please click "Accept Answer" and upvote it.If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.