Type cast from Java.Lang.Object to native CLR type in MonoDroid

前端 未结 8 1163
花落未央
花落未央 2021-02-02 13:38

How to cast Java.Lang.Object to some native type?

Example:

ListView adapter contains instances of native type Message. When i am trying to get SelectedItem from

8条回答
  •  爱一瞬间的悲伤
    2021-02-02 13:50

    If for some reason GetChildAtPosition is not possible, serialise the object to json string and then deserialise the string back to native class.

提交回复
热议问题