0

Recently I was asked by interviewer on how to implement Singleton using DI and unity framework. I searched in net and I had no codes/directions on this but just the Singleton using static variables I found.

Please help me with a very small understandable code on how to implement Singleton using DI and Unity Framework.

Also, I would like to understand the pros and cons of both these approaches of DI as well as Static variable using property.

Jasmine
  • 5,186
  • 16
  • 62
  • 114

0 Answers0