Xamarin.Android Bindings Bindings libraries may rename methods and interfaces

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Example

Not everything in a bindings library will have the same name in C# as it does in Java.

In C#, interface names start with "I", but Java has no such convention. When you import a Java library, an interface named SomeInterface will become ISomeInterface.

Similarly, Java doesn't have properties like C# does. When a library is bound, Java getter and setter methods might be refactored as properties. For example, the following Java code

public int getX() { return someInt; }

public int setX(int someInt) { this.someInt = someInt; }

may be refactored as

public int X { get; set; }

when it's bound.



Got any Xamarin.Android Question?