static void SetAnnotationCallback(IntPtr annotatable, IntPtr annotation) { try { Cdn.AnnotatableImplementor __obj = GLib.Object.GetObject(annotatable, false) as Cdn.AnnotatableImplementor; __obj.Annotation = GLib.Marshaller.Utf8PtrToString(annotation); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, false); } }
static IntPtr GetAnnotationCallback(IntPtr annotatable) { try { Cdn.AnnotatableImplementor __obj = GLib.Object.GetObject(annotatable, false) as Cdn.AnnotatableImplementor; string __result = __obj.Annotation; return(GLib.Marshaller.StringToPtrGStrdup(__result)); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }