static void Main(string[] args) { ClassThatDoes itdoes = new ClassThatDoes(); itdoes.m_interface = new DoEr_TypeA(); itdoes.DoSomething(); itdoes.m_interface = new DoEr_TypeB(); itdoes.DoSomething(); }