Beispiel #1
0
 public override void execute(BRemote __byps__remote, BAsyncResultIF <Object> __byps__asyncResult)
 {
     // checkpoint byps.gen.cs.GenApiClass:413
     try {
         RemotePrimitiveTypes           __byps__remoteT     = (RemotePrimitiveTypes)__byps__remote;
         BAsyncResultSendMethod <int[]> __byps__outerResult = new BAsyncResultSendMethod <int[]>(__byps__asyncResult, new byps.test.api.BResult_100361105());
         __byps__remoteT.ParseDate(dateValue, BAsyncResultHelper.ToDelegate(__byps__outerResult));
     } catch (Exception e) {
         __byps__asyncResult.setAsyncResult(null, e);
     }
 }
Beispiel #2
0
        void internalTestWriteDate(DateTime dt)
        {
            RemotePrimitiveTypes remote = client.RemotePrimitiveTypes;

            int[] arr = remote.ParseDate(dt);
            TestUtils.assertEquals(log, "parseDate must not return null", true, arr != null);
            TestUtils.assertEquals(log, "#arr", 7, arr.Length);

            int      idx         = 0;
            int      Year        = arr[idx++];
            int      Month       = arr[idx++];
            int      Day         = arr[idx++];
            int      Hour        = arr[idx++];
            int      Minute      = arr[idx++];
            int      Second      = arr[idx++];
            int      Millisecond = arr[idx++];
            DateTime dtR         = new DateTime(Year, Month, Day, Hour, Minute, Second, Millisecond);

            TestUtils.assertEquals(log, "parseDate", dt, dtR);
        }