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

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

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

            if ((r == null) && b.ice_isA(ice_staticId(), ctx))
            {
                TestPrxHelper h = new TestPrxHelper();
                h.iceCopyFrom(b);
                r = h;
            }
            return(r);
        }
예제 #5
0
 public static TestPrx 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))
         {
             TestPrxHelper h = new TestPrxHelper();
             h.iceCopyFrom(bb);
             return(h);
         }
     }
     catch (global::Ice.FacetNotExistException)
     {
     }
     return(null);
 }
예제 #6
0
 public static TestPrx 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()))
         {
             TestPrxHelper h = new TestPrxHelper();
             h.iceCopyFrom(bb);
             return(h);
         }
     }
     catch (global::Ice.FacetNotExistException)
     {
     }
     return(null);
 }