Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Can I use Xamarin.Forms.Dependency to instantiate a class that has a constructor with a parameter?

$
0
0

The title is basically my whole question: can I use Xamarin.Forms.Dependency to instantiate a class that has a constructor with a parameter?

All the examples I can find show interface implementations that use the default no-parameter constructor.

I'm guessing the answer to my question is 'No' because I can't see where you would pass the parameter.

Any advice or pointers to examples would be great!

Kind wishes ~ Patrick


Viewing all articles
Browse latest Browse all 204402

Trending Articles



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