Examples of useful or non-trival dual interfaces
- by Scott Weinstein
Recently Erik Meijer and others have show how IObservable/IObserver is the dual of IEnumerable/IEnumerator. The fact that they are dual means that any operation on one interface is valid on the other, thus providing a theoretical foundation for the Reactive Extentions for .Net
Do other dual interfaces exist? I'm interested in any example, not just .Net based.