On Dec 6, 2011, at 3:43 AM, Tomasz Cielecki wrote:
> Now in the itenized overlay I have the CreateItem method:
>
> protected override NMTOverlayItem CreateItem(int index)
> {
> return overlayItems.ElementAt(index);
> }
>
> I get the following error:
>
> 'NSPublic.AndroidClient.NMTItemizedOverlay.CreateItem(int)': return
> type must be 'Java.Lang.Object' to match overridden member
> 'Android.GoogleMaps.ItemizedOverlay.CreateItem(int)'
C# doesn't support covariant return types, so you need to appease the compiler:
protected override Java.Lang.Object CreateItem (int index)
{
return overlayItems.ElementAt(index);
}
- Jon
_______________________________________________
Monodroid mailing list
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid