public SocketConnectableAdapter (ISocketConnectableImplementor 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; }
public SocketConnectableAdapter(ISocketConnectableImplementor 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 ToString_cb(IntPtr inst) { try { ISocketConnectableImplementor __obj = GLib.Object.GetObject(inst, false) as ISocketConnectableImplementor; string __result; __result = __obj.ToString(); return(GLib.Marshaller.StringToPtrGStrdup(__result)); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
static IntPtr ProxyEnumerate_cb(IntPtr inst) { try { ISocketConnectableImplementor __obj = GLib.Object.GetObject(inst, false) as ISocketConnectableImplementor; GLib.SocketAddressEnumerator __result; __result = __obj.ProxyEnumerate(); return(__result == null ? IntPtr.Zero : __result.Handle); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }