Мой интерфейс в ApiDefinition.cs
похож на ниже.
[BaseType(typeof(NSCoding))]
interface LSMAInvitationDescription //: INSCoding
{
[Export("encodeWithCoder:")]
void EncodeTo(NSCoder encoder);
}
В моем LSMAInvitationDescription.g.cs
это так.
[Export ("encodeWithCoder:")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual void EncodeTo (NSCoder encoder)
{
if (encoder == null)
throw new ArgumentNullException ("encoder");
if (IsDirectBinding) {
global::ApiDefinition.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("encodeWithCoder:"), encoder.Handle);
} else {
global::ApiDefinition.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("encodeWithCoder:"), encoder.Handle);
}
}
Но когда я строю свой проект привязки, я получаю следующую ошибку.
Ошибка CS0534 «LSMAInvitationDescription» не реализует унаследованный
абстрактный член
'NSCoding.EncodeTo (NSCoder)' SightCallBinding D: \ Folder \ SightCallBinding \ SightCallBinding \ obj \ Debug \ ios \ SightCallBinding D: \ Folder \ SightCallBinding \ SightCallBinding \ obj \ Debug \ ios \ SightCallBinding_itation \ LSG 1013 *
Пожалуйста, помогите мне.
Спасибо!
UPDATE
Это - библиотека, которую я пытаюсь связать