Does really List<byte> keep data in one block like byte[]?

H

Hyun-jik Bae

Hi,
I heard roughly that List<byte> keep data in one block like byte[]. Is that
really true?

Please reply. Thanks in advance.

Hyun-jik Bae
 
J

Jon Skeet [C# MVP]

Hyun-jik Bae said:
I heard roughly that List<byte> keep data in one block like byte[]. Is that
really true?

Please reply. Thanks in advance.

Yes. Basically List<T> keeps an array of type T[] internally.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top