Пример #1
0
 public static PrinterCsharpPrx read(global::Ice.InputStream istr)
 {
     global::Ice.ObjectPrx proxy = istr.readProxy();
     if (proxy != null)
     {
         PrinterCsharpPrxHelper result = new PrinterCsharpPrxHelper();
         result.iceCopyFrom(proxy);
         return(result);
     }
     return(null);
 }
Пример #2
0
        public static PrinterCsharpPrx uncheckedCast(global::Ice.ObjectPrx b, string f)
        {
            if (b == null)
            {
                return(null);
            }
            global::Ice.ObjectPrx  bb = b.ice_facet(f);
            PrinterCsharpPrxHelper h  = new PrinterCsharpPrxHelper();

            h.iceCopyFrom(bb);
            return(h);
        }
Пример #3
0
        public static PrinterCsharpPrx uncheckedCast(global::Ice.ObjectPrx b)
        {
            if (b == null)
            {
                return(null);
            }
            PrinterCsharpPrx r = b as PrinterCsharpPrx;

            if (r == null)
            {
                PrinterCsharpPrxHelper h = new PrinterCsharpPrxHelper();
                h.iceCopyFrom(b);
                r = h;
            }
            return(r);
        }
Пример #4
0
        public static PrinterCsharpPrx checkedCast(global::Ice.ObjectPrx b, global::System.Collections.Generic.Dictionary <string, string> ctx)
        {
            if (b == null)
            {
                return(null);
            }
            PrinterCsharpPrx r = b as PrinterCsharpPrx;

            if ((r == null) && b.ice_isA(ice_staticId(), ctx))
            {
                PrinterCsharpPrxHelper h = new PrinterCsharpPrxHelper();
                h.iceCopyFrom(b);
                r = h;
            }
            return(r);
        }
Пример #5
0
 public static PrinterCsharpPrx 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))
         {
             PrinterCsharpPrxHelper h = new PrinterCsharpPrxHelper();
             h.iceCopyFrom(bb);
             return(h);
         }
     }
     catch (global::Ice.FacetNotExistException)
     {
     }
     return(null);
 }
Пример #6
0
 public static PrinterCsharpPrx 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()))
         {
             PrinterCsharpPrxHelper h = new PrinterCsharpPrxHelper();
             h.iceCopyFrom(bb);
             return(h);
         }
     }
     catch (global::Ice.FacetNotExistException)
     {
     }
     return(null);
 }