using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Runtime.Remoting;
using System.Runtime.Serialization.Formatters.Binary;
using System.Text;
using System.Windows.Forms;
using Interface;
namespace Client
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
Stream sw = File.OpenRead(@"D:\wwwroot\OICF\MarshalDemo\Server\bin\Debug\xx.bin");
BinaryFormatter bf=new BinaryFormatter();
ITest test=(ITest)bf.Deserialize(sw);
test.Say("hello world");
}
}
}