直接上代码

首先定义一个接口

1 public interface ITransferData
2     {
3         Stream GetStream(DataTable table);
4         DataTable GetData(Stream stream);
5     }
View Code

相关文章: