In this chapter, youve seen how .NET components can be used by .NET clients . Exposing .NET types to COM is more restrictive and more workthan importing COM types mainly because .NET types have a much richer structure and integrate in more complex ways than COM types.
COM Callable Wrappers can be produced for .NET types, and these wrappers provide all the behavior COM client code will be expecting. Methods on .NET types are exposed via COM interfaces. .NET interfaces will be converted and exposed as COM interfaces, and if a class doesnt expose its methods using interfaces, a class interface will be constructed through which class methods will be exposed. .NET events can also be handled by COM clients that expect a connection-point style of interaction, provided that the .NET component correctly exposes source interfaces. The final part of the chapter showed that you can use .NET Windows Forms controls as ActiveX controls, but that this is guaranteed to work correctly only in Internet Explorer.