public StreamableContentAdapter(IStreamableContentImplementor implementor) { if (implementor == null) { throw new ArgumentNullException("implementor"); } else if (!(implementor is GLib.Object)) { throw new ArgumentException("implementor must be a subclass of GLib.Object"); } this.implementor = implementor as GLib.Object; }
static IntPtr GetUri_cb(IntPtr inst, IntPtr mime_type) { try { IStreamableContentImplementor __obj = GLib.Object.GetObject(inst, false) as IStreamableContentImplementor; string __result; __result = __obj.GetUri(GLib.Marshaller.Utf8PtrToString(mime_type)); return(GLib.Marshaller.StringToPtrGStrdup(__result)); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
static int GetNMimeTypes_cb(IntPtr inst) { try { IStreamableContentImplementor __obj = GLib.Object.GetObject(inst, false) as IStreamableContentImplementor; int __result; __result = __obj.NMimeTypes; return(__result); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
public StreamableContentAdapter (IStreamableContentImplementor implementor) { if (implementor == null) throw new ArgumentNullException ("implementor"); else if (!(implementor is GLib.Object)) throw new ArgumentException ("implementor must be a subclass of GLib.Object"); this.implementor = implementor as GLib.Object; }