Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Is it right to use Singletons?

$
0
0

I am writing a class where I need to access data, set and get from different places in my app.
There is also some functions

Normally I would do this with a Singleton, but is there a smarter way?
Is Dependency service only for accessing services from different platforms or would it be good to use it instead of singletons?
There's also IOC. Is this the way to go?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>