Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Xamarin Android Binding Library - does not implement inherited abstract member

$
0
0

Hello World,

I am trying Android binding library and I am encountering the below error -

'ReaderCollectionImpl' does not implement inherited abstract member 'AbstractList.Get(int)'

and the below function is generated in my class

public virtual unsafe global::Com.Digitalpersona.Uareu.IReader Get (int n)
{
}

When I try to change the keyword from virtual to override

public override unsafe global::Com.Digitalpersona.Uareu.IReader Get (int n)
{
}

I get this error - 'ReaderCollectionImpl.Get(int)': return type must be 'Object' to match overridden member 'AbstractList.Get(int)'

I cannot change my return type. I also tried using the new keyword however it didn't help me out.

The class looks like this in Java native code -

public class ReaderCollectionImpl extends AbstractList<Reader> implements ReaderCollection
{
}

While converting it in C# it changes to -

public partial class ReaderCollectionImpl : global::Java.Util.AbstractList 
{
}

My guess is Java.Util.AbstractList does not have generics that might be the issue here.

Please help.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>