Example #1
0
        public void testRemoteListMapSetListInteger()
        {/* USE THIS FILE ACCORDING TO THE COPYRIGHT RULES IN LICENSE.TXT WHICH IS PART OF THE SOURCE CODE PACKAGE */

		    log.info("testRemoteListMapSetListInteger(");
		
		    ListListTypes obj = new ListListTypes();
            List<IDictionary<int, IList<HashSet<int>>>> list = new List<IDictionary<int, IList<HashSet<int>>>>();
		    for (int i = 0; i < 2; i++) {
			    IDictionary<int,IList<HashSet<int>>> map = new Dictionary<int,IList<HashSet<int>>>();
			    for (int j = 0; j < 3; j++) {
                    IList<HashSet<int>> list2 = new List<HashSet<int>>();
                    for (int k = 0; k < 4; k++)
                    {
                        HashSet<int> set = new HashSet<int>();
                        list2.Add(set);
					    for (int n = 0; n < 5; n++) {
						    int pt = n * k * j * i;
                            set.Add(pt);
					    }
					    
				    }
				    map[j] = list2;
			    }
			    list.Add(map);
		    }
		    obj.Int3 = list;
		
		    remote.SetInt4(obj.Int3);
		    TestUtils.assertEquals(log, "int4", obj.Int3, remote.GetInt4());
		
		    log.info(")testRemoteListMapSetListint");
	    }
Example #2
0
        public override void write(Object obj1, BOutput bout1, long version)
        {
            ListListTypes obj  = (ListListTypes)obj1;
            BOutputBin    bout = (BOutputBin)bout1;
            BBufferBin    bbuf = bout.bbuf;

            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Int2, false, byps.test.api.BSerializer_1746702954.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Int24, false, byps.test.api.BSerializer_1865834185.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Int3, false, byps.test.api.BSerializer_1633500852.instance);
        }
Example #3
0
        public override Object read(Object obj1, BInput bin1, long version)
        {
            BInputBin     bin = (BInputBin)bin1;
            ListListTypes obj = (ListListTypes)(obj1 != null ? obj1 : bin.onObjectCreated(new ListListTypes()));

            BBufferBin bbuf = bin.bbuf;

            // checkpoint byps.gen.cs.PrintContext:449
            obj.Int2 = (IList <IList <int> >)bin.readObj(false, null);
            // checkpoint byps.gen.cs.PrintContext:449
            obj.Int24 = (IList <IList <int[, , , ]> >)bin.readObj(false, null);
            // checkpoint byps.gen.cs.PrintContext:449
            obj.Int3 = (IList <IDictionary <int, IList <HashSet <int> > > >)bin.readObj(false, null);

            return(obj);
        }
Example #4
0
 public ListListTypes(ListListTypes rhs)
 {
     this.int2Value  = rhs.int2Value;
     this.int3Value  = rhs.int3Value;
     this.int24Value = rhs.int24Value;
 }
Example #5
0
		public ListListTypes(ListListTypes rhs)
		{
			this.int2Value = rhs.int2Value;
			this.int3Value = rhs.int3Value;
			this.int24Value = rhs.int24Value;
		}		
Example #6
0
	    public void testRemoteListListint()  {
		    log.info("testRemoteListListint(");
		
		    ListListTypes obj = new ListListTypes();
		    List<IList<int>> list = new List<IList<int>>();
		    for (int i = 0; i < 3; i++) {
			    List<int> itemList = new List<int>();
			    for (int j = 0; j < i+1; j++) {
				    itemList.Add(j);
			    }
		    }
		    obj.Int2 = list;
		
		    remote.SetInt3(obj.Int2);
		    TestUtils.assertEquals(log, "int3", obj.Int2, remote.GetInt3());
		
		    log.info(")testRemoteListListint");
	    }