0
namespace
    {
    using Itest = IMyInterface
    }

Then I use the Itest for rest of code But as per new requirement, based on some conditions i need to set the alias at runtime. >Like using Itest = {pick at runtime}

PKS
  • 51
  • 1
  • 5
  • 1
    Out of interest, how could you write code against an interface which might change at runtime? It sounds a bit like you may want to implement inversion of control/dependency injection instead. – Tom Chantler Mar 15 '13 at 11:08
  • 2
    That makes no sense. What's the use case? –  Mar 15 '13 at 11:08

0 Answers0