/// <summary>
 /// 初始化基容
 /// </summary>
 /// <param name="writer">文本写入器</param>
 protected ContainerBase(ITextWriter writer)
 {
     writer.CheckNull("writer");
     _writer = writer;
 }