Common code used by .Net / Xamarin apps