Friday, October 8, 2010

Limitations of COM Interop

Following is the list of some shortcomings:

  • Static/shared members: COM objects are fundamentally different from .Net types. One of the differences is lack of support for static/shared members.
  • Parameterized Constructors: COM types don't allow parameters to be passed into a constructor. This limits the control you have over initialization and the use of overloaded constructors.
  • Inheritance: One of the biggest issues is the limitations COM objects place on the inheritance chain. Members that shadow members in a base class aren't recognizable, and therefore, aren't callable or usable in real sense.
  • Portability: Operating Systems other than Windows don't have registry. Reliance on Windows registry limits the number of environments a .Net application can be ported to.

No comments:

Post a Comment