상속: global::java.lang.Object, global::System.Runtime.Serialization.ISerializable
예제 #1
0
        public void Ser()
        {
            JavaInstanceFields s = new JavaInstanceFields();
            MemoryStream ms=new MemoryStream();
            BinaryFormatter binaryFormatter=new BinaryFormatter();
            binaryFormatter.Serialize(ms, s);
            ms.Close();

            MemoryStream mso=new MemoryStream(ms.GetBuffer());
            var des = (JavaInstanceFields)binaryFormatter.Deserialize(mso);
            Assert.AreEqual(6, des.byteField);
        }
예제 #2
0
 public override void Setup()
 {
     base.Setup();
     testInstance = new JavaInstanceFields();
 }