void ttt2() { var demo = new Demo(); //var bbary = demo.Say(new bool[] { true,false,false }); //var bbary2 = demo.Say(new bool?[] { false, true, null }); //var byary = demo.Say(new byte[] { 0x01,0x02 }); //var byary2 = demo.Say(new byte?[] { 0x01,0x02, null }); //var bcary = demo.Say(new char[] { 'a','b' }); //var bcary2 = demo.Say(new char?[] { 'a','c', null }); //var bsary = demo.Say(new short[] { (short)1, (short)2 }); //var bsary2 = demo.Say(new short?[] { (short)1, (short)2, null }); //var biary = demo.Say(new int[] { 100,200 }); //var biary2 = demo.Say(new int?[] { 100, 200, null }); //var blary = demo.Say(new long[] { 101, 201 }); //var blary2 = demo.Say(new long?[] { 101, 201, null }); //var bfary = demo.Say(new float[] { 101.1F, 202.2F }); //var bfary2 = demo.Say(new float?[] { 101.1F, 202.2F, null }); //var ary = demo.Say(new double[] { 1D, 2D, 3D }); //var ary2 = demo.Say(new double?[] { 1D,2D, null }); //var sary = demo.Say(new string[] { "xx", "yy", null, string.Empty }); //var demos = demo.Say(new Demo[] { demo, demo, null, new Demo("gg") }); //var r1 = demo.SayObject(demo); //var demo2 = r1.ToCastJValue<Demo>(); //var r2 = demo.SayObject(100); //var int2 = r2.ToCastJValue<int>(); var os1 = demo.SayObjectAry(new object[] { 1, 2, 4, (int?)null, "abc", 'a', new Demo("gg") }); var i1 = os1[0].ToDotValue<int>(); //var i2 = os1[1].ToJavaValue<int>(); //var i3 = os1[2].ToJavaValue<int>(); //var i4 = os1[3].ToJavaValue<int?>(); //var s5 = os1[4].ToJavaValue<string>(); //var c5 = os1[5].ToJavaValue<char>(); //var d6 = os1[6].ToJavaValue<Demo>(); var os2 = demo.SayObjectAry(new JObject[] { demo, demo, null, new Demo("gg") }); foreach (Demo o in os2.ToDotValue<Demo>()) Console.WriteLine((object)o); Console.WriteLine(""); Console.WriteLine(">>> 按下任意键结束。"); Console.ReadKey(true); JAssembly.Dispose(); }