Does C# use COM/DCOM "under the hood" ?

  • Thread starter Thread starter MrAsm
  • Start date Start date
M

MrAsm

Hi,

I'd like to know if C# object system is based on COM/DCOM, or is it a
completely new technology, developed "from scratch"?

In other words, does C# use COM "under the hood", or are C#/.NET and
COM/DCOM completely separate fields?

Thanks in advance,
MrAsm
 
No, C# (nor CLR) objects are not based on [D]COM. They are entirely
separate; CLR objects are managed, garbage-collected, etc; COM is
reference counted. Most CLR languauges can invoke COM via interop, and
likewise CLR objects can be exposed as COM servers through the reverse
process (see: "tlbimp" and "tlbexp"), but they are fundamentally very
different.

Marc
 
Back
Top