The method that I need to bind have argument in primitive array for example:
(bool)isRectangle:(const CGPoint[4])corners;
How I bind const CGPoint[4]
type with C# type?
Note: Using Sharpie, the result is below
[Static]
[Export("isRectangle:")]
void IsRectangle(CGPoint[] corners);
and when I build it, I got error
cannot convert from 'CoreGraphics.CGPoint[]' to 'Foundation.NSObject'
Define the
const CGPoint[4]
as struct in yourStructsAndEnums.cs
:Your definition becomes: