xamarin.android - Service locator vs IOC in Xamarin -


i started developing xamarin app hobby , wondering why many xamarin application have implemented service locator instead of ioc container, seems more clear me. reasons behind this? there issues associated ioc in xamarin applications?

there no issues using either servicelocator or ioc in xamarin. can combine both, many do.

currently, xamarin not come ioc container, have build or use external library such as:

  • mvvmcross
  • xamarin.forms.labs
  • autofac
  • tinyioc
  • etc.

it difficult why xamarin chose servicelocator on ioc. there no official explanation, 1 either preferences or codestyle.


Comments

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -