所以我正在开发一个现有的应用程序,它有一个很好的小助手方法,最终调用 ObjectStateFormatter Serialize() - 这是代码。
/// <summary>
/// Transforms a limited object serialization (LOS)-formatted object into a view-state value and places the results into a <see cref="T:System.IO.TextWriter"/> object.
/// </summary>
/// <param name="output">The <see cref="T:System.IO.TextWriter"/> to receive the transformed value. </param><param name="value">The LOS-formatted object to transform into a view-state value. </param>
public void Serialize(TextWriter output, object value)
{
this.SerializeInternal(output, value);
}
private void SerializeInternal(TextWriter output, object value)
{
string str = this._formatter.Serialize(value);
output.Write(str);
}
我是否正确地假设它忽略了我的 List 属性?
谢谢肯