Skip to content

Instantly share code, notes, and snippets.

@wcoder
Last active July 14, 2021 19:37
Show Gist options
  • Save wcoder/568d1638d6a7cb3de753166e30234c52 to your computer and use it in GitHub Desktop.
Save wcoder/568d1638d6a7cb3de753166e30234c52 to your computer and use it in GitHub Desktop.
Xamarin Q&A

Xamarin.Android

How to get Java class from C# type?

Java.Lang.Class has a special method for managed types:

Java C#
ClickableSpan.class ```cs
Java.Lang.Class.FromType(typeof(ClickableSpan))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment