In Xamarin.Forms I can use Debug.Assert.
But this can't use in Xamarin.Android.
So in Xamarin.Android what can I use to instead?
Try adding the full specifier:
System.Diagnostics.Debug.Assert( /*your binary condition here */ );
If that doesn't do it, you are probably missing a reference (in packages.config or your csproj file) to "System.Diagnostics.Debug", for which I am currently using version="4.3.0"
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies