¡@

Home 

c# Programming Glossary: iamaninterfacetoo

Is it possible to bind different interfaces to the same instance of a class implementing all of them?

http://stackoverflow.com/questions/10206049/is-it-possible-to-bind-different-interfaces-to-the-same-instance-of-a-class-impl

interface IAmAnInterface void DoSomething and interface IAmAnInterfaceToo void DoSomethingElse and a class implementing both class IAmAnImplementation.. implementing both class IAmAnImplementation IAmAnInterface IAmAnInterfaceToo public IAmAnImplementation public void DoSomething public.. beeing used for IAmAnInterface as well as IAmAnInterfaceToo it's clear that I need some kind of singleton. I played around..