Bridge pattern in the .NET RCW

The Component Object Model (COM) technology solutions packaged as libraries can be consumed through Runtime Callable Wrapper (RCW), available in the .NET platform. By allowing managed classes and COM components to interact, despite their interface disparity, RCWs are an example of bridge pattern (implemented as an adapter!). Please consult the documentation on Com Callable Wrapper (CCW) and RCW to understand how the bridge pattern is implemented to interoperate with components written in other languages (mostly C++/ATL). Technically speaking, even ADO.NET API also leverages the bridge pattern, to interact with ODBC and other native drivers implemented by respective database vendors.

Get .NET Design Patterns now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.