Xamarin compatibility