Curiosity - Are the Collection Classes Implemented Using .NET orNative Calls

J

jehugaleahsa

Hello:

I'm just curious whether the .NET collection classes are implemented
purely in .NET or if they call C/C++/assembler routines involved.

Thanks,
Travis
 
J

Jeroen Mostert

I'm just curious whether the .NET collection classes are implemented
purely in .NET or if they call C/C++/assembler routines involved.
Purely managed, except for many array operations (they're the lowest common
denominator of collections, so that makes sense). There is actually not that
much native code in the framework, mostly because staying in the managed
world often offers better performance (marshaling is expensive), better
security and it's easier to maintain.
 
C

Cor Ligthert[MVP]

Travis,

As you look the way System.Net and Microsoft.VisualBasic classes are
implemented, then it is all the same.
These two namepaces contain the classes in Net, which standard can be used
by all Microsoft managed languages (C++, C#, VB, (version 1 J#))

The languages are just the glue around the implementation.

Cor
 

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