IMarshalSupport.cs 320 B

1234567891011121314
  1. using System.IO;
  2. namespace TBL.CSharp.Serialization.Marshal;
  3. /// <summary>
  4. /// Marshal 支持接口
  5. /// </summary>
  6. public interface IMarshalSupport<in T>
  7. {
  8. /// <summary>
  9. /// 将 <paramref name="self"/> 序列化入 <paramref name="stream"/> 当中
  10. /// </summary>
  11. void Write(T self, Stream stream);
  12. }