question

6666666 avatar image
0 Votes"
6666666 asked 6666666 commented

in xamarin.android binding how to remove the override?

the cs code is

 public override unsafe void SetVisible (bool p0){}


I want it change to

 public unsafe void SetVisible (bool p0)


to remove the override
I can write the metadata.xml

<attr path="already know" name="?"></attr>

how to set it?

what its name?

dotnet-xamarin
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JarvanZhang-MSFT avatar image
0 Votes"
JarvanZhang-MSFT answered 6666666 commented

Hello,​

Welcome to our Microsoft Q&A platform!

Hi, where is the method? Is it from the a class that inherit from an interface or abstract class? If so, the override keyword cannot be removed. The override modifier is required to extend or modify the abstract or virtual implementation of an inherited method.

Best Regards,

Jarvan Zhang



If the response is helpful, please click "Accept Answer" and upvote it.

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.


· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Then how to fix the "没有找到合适的方法来重写" in metatada.xml?

0 Votes 0 ·

OK I Fixed it

0 Votes 0 ·