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

  • Thread starter Thread starter jehugaleahsa
  • Start date Start date
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
 
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.
 
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
 
Back
Top