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
it's work for me:
public class HolderHelper : Java.Lang.Object { public readonly T Value; public HolderHelper (T value) { this.Value = value; } }
test:
chkFileName.Tag = new HolderHelper (item); LinkInfo link= (chkFileName.Tag as HolderHelper).Value;