dotnet / dotnet/macios

Binding tool maybe can be improved for object pointer and array pointer.

Open
#12,262 1 comment 0 reactions 1 assignee Claimed by @dalexsoto View on GitHub
enhancement generator objective-sharpie
Dominant language
C#
Stars
2.9k
Forks
576
Avg merge
2d 13h
Merged PRs (30d)
96

Description

What an interesting things is that situation:
![QQ图片20210728115647](https://user-images.githubusercontent.com/16309962/127261152-f1826d47-c540-4a72-8bc3-91605b28b780.jpg)

Parameters on ObjectC side will be pointer(array);
But binding tool will do this : pointer(object)
```
// +(instancetype)polygonWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count;
[Static]
[Export("polygonWithCoordinates:count:")]
MAPolygon PolygonWithCoordinates(CLLocationCoordinate2D coords, nuint count);
```

So is it possible improve this situation?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.