Inheritance: global::java.lang.Object, global::System.Runtime.Serialization.ISerializable
Esempio n. 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);
        }
 public override void Setup()
 {
     base.Setup();
     testInstance = new JavaInstanceFields();
 }