Example #1
0
 public static PrinterPythonPrx read(global::Ice.InputStream istr)
 {
     global::Ice.ObjectPrx proxy = istr.readProxy();
     if (proxy != null)
     {
         PrinterPythonPrxHelper result = new PrinterPythonPrxHelper();
         result.iceCopyFrom(proxy);
         return(result);
     }
     return(null);
 }
Example #2
0
        public static PrinterPythonPrx uncheckedCast(global::Ice.ObjectPrx b, string f)
        {
            if (b == null)
            {
                return(null);
            }
            global::Ice.ObjectPrx  bb = b.ice_facet(f);
            PrinterPythonPrxHelper h  = new PrinterPythonPrxHelper();

            h.iceCopyFrom(bb);
            return(h);
        }
Example #3
0
        public static PrinterPythonPrx uncheckedCast(global::Ice.ObjectPrx b)
        {
            if (b == null)
            {
                return(null);
            }
            PrinterPythonPrx r = b as PrinterPythonPrx;

            if (r == null)
            {
                PrinterPythonPrxHelper h = new PrinterPythonPrxHelper();
                h.iceCopyFrom(b);
                r = h;
            }
            return(r);
        }
Example #4
0
        public static PrinterPythonPrx checkedCast(global::Ice.ObjectPrx b, global::System.Collections.Generic.Dictionary <string, string> ctx)
        {
            if (b == null)
            {
                return(null);
            }
            PrinterPythonPrx r = b as PrinterPythonPrx;

            if ((r == null) && b.ice_isA(ice_staticId(), ctx))
            {
                PrinterPythonPrxHelper h = new PrinterPythonPrxHelper();
                h.iceCopyFrom(b);
                r = h;
            }
            return(r);
        }
Example #5
0
 public static PrinterPythonPrx checkedCast(global::Ice.ObjectPrx b, string f, global::System.Collections.Generic.Dictionary <string, string> ctx)
 {
     if (b == null)
     {
         return(null);
     }
     global::Ice.ObjectPrx bb = b.ice_facet(f);
     try
     {
         if (bb.ice_isA(ice_staticId(), ctx))
         {
             PrinterPythonPrxHelper h = new PrinterPythonPrxHelper();
             h.iceCopyFrom(bb);
             return(h);
         }
     }
     catch (global::Ice.FacetNotExistException)
     {
     }
     return(null);
 }
Example #6
0
 public static PrinterPythonPrx checkedCast(global::Ice.ObjectPrx b, string f)
 {
     if (b == null)
     {
         return(null);
     }
     global::Ice.ObjectPrx bb = b.ice_facet(f);
     try
     {
         if (bb.ice_isA(ice_staticId()))
         {
             PrinterPythonPrxHelper h = new PrinterPythonPrxHelper();
             h.iceCopyFrom(bb);
             return(h);
         }
     }
     catch (global::Ice.FacetNotExistException)
     {
     }
     return(null);
 }