namespace TBL.CSharp.Serialization.Marshal { /// /// Marshal 风格的序列化上下文接口 /// public interface IMarshalContext { /// /// 清空上下文内容 /// void Clear(); /// /// 获取可链接符号 /// string GetLinkableSymbol(int index); /// /// 添加可链接符号 /// string AddLinkableSymbol(string symbol); /// /// 寻找可链接符号的索引 /// bool FindLinkableSymbol(string symbol, out int index); /// /// 获取可链接对象 /// object GetLinkableObject(int index); /// /// 添加可链接对象 /// T AddLinkableObject(T element); /// /// 寻找可链接对象的索引 /// bool FindLinkableObject(object element, out int index); } }