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;
		}
示例#2
0
 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;
 }
示例#3
0
 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;
     }
 }
示例#4
0
 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;
     }
 }