Interview Questions

I want to expose my .NET objects to COM objects. Is that possible?

.NET Database ,COM interop,and .NET deployment questions and answers


(Continued from previous question...)

I want to expose my .NET objects to COM objects. Is that possible?

Yes, but few things should be considered first. Classes should implement interfaces explicitly. Managed types must be public. Methods, properties, fields, and events that are exposed to COM must be public. Types must have a public default constructor with no arguments to be activated from COM. Types cannot be abstract.

(Continued on next question...)

Other Interview Questions