IMarshalSupportConstructor.cs 363 B

1234567891011121314
  1. using System.IO;
  2. namespace TBL.CSharp.Serialization.Marshal;
  3. /// <summary>
  4. /// Marshal 以工厂方式反序列化的支持接口
  5. /// </summary>
  6. public interface IMarshalSupportConstructor<T> : IMarshalSupport<T>
  7. {
  8. /// <summary>
  9. /// 从 <paramref name="stream"/> 读取数据并产出一个目标对象
  10. /// </summary>
  11. T Load(Stream stream);
  12. }