1

I'm having a hard time to come up with the correct way to translate the last part (<GPUImageInput>) into the binding. Any suggestions?

@interface GPUImageFilter : GPUImageOutput <GPUImageInput>
4

1 回答 1

2

从这里开始:http: //docs.xamarin.com/guides/ios/advanced_topics/binding_objective-c_libraries#Binding_Protocolshttp://docs.xamarin.com/guides/ios/advanced_topics/api_design#Models

根据里面的内容GPUImageInput,我会将它与[Model]属性绑定,然后GPUImageFilter从它继承

[Model]
//Look, no BaseTypeAttribute
interface GPUImageInput {
    //[Export] everything you need
}

[BaseType (typeof (XXXX))]
interface GPUImageFilter : GPUImageInput {
    //[Export again]
}

希望能帮助到你

于 2013-04-26T11:17:07.760 回答