Forum Xamarin.iOS

How to bind => typedef BOOL (*GPBEnumValidationFunc)(int32_t);

cyril_chateaucyril_chateau Member ✭✭
edited September 2018 in Xamarin.iOS

I'm currently trying to bind Protobuf,
so I used Objective-Sharpie to generate ApiDefinition and StructsAndEnums (that contains lot of errors :smiley: ).
When I finished to fix errors, I still got one last :

The type or namespace name 'GPBEnumValidationFunc' could not be found (are you missing a using directive or an assembly reference?) (CS0246) (Protobuf.Binding)

I found that this type is declared in GPBRuntimeTypes.h like that :

* Verifies that a given value can be represented by an enum type.
* /
typedef BOOL (

And this type/struct, is not declared in sharpie's generated files.

Is there a way to bind this "type" in C# ?


Sign In or Register to comment.