Hello,
And there is really no C# equivalent for Class<T>. There is typeof, and I saw some posts on this, but I couldn't figure out a decent way to use this new method in C#. Is there a sample for this >method that will help?
Please try to use Java.Lang.Class.FromType(typeof(Tag))
to convert from 'System.Type' to 'Java.Lang.Class' like following code.
Tag tag = (Tag)intent.GetParcelableExtra(NfcAdapter.ExtraTag,Java.Lang.Class.FromType(typeof(Tag)));
Best Regards,
Leon Lu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.