📄 xmlbuilder.cs
字号:
using System;
using System.Collections;
using System.Web.UI;
using System.Xml;
using System.IO;
namespace System.Web.UI.WebControls
{
/// <summary>
/// Summary description for XmlBuilder.
/// </summary>
public class XmlBuilder : ControlBuilder
{
public XmlBuilder() : base()
{
}
public virtual void AppendLiteralString(string s)
{
}
public virtual Type GetChildControlType(string tagName, IDictionary attribs)
{
return null;
}
public virtual bool NeedsTagInnerText()
{
return true;
}
public virtual void SetTagInnerText(string text)
{
int local0;
string local1;
XmlDocument local2;
XmlTextReader local3;
if (!(System.Web.UI.Util.IsWhiteSpaceString(text)))
{
local0 = System.Web.UI.Util.FirstNonWhiteSpaceIndex(text);
local1 = text.Substring(local0);
local2 = new XmlDocument();
local3 = new XmlTextReader(new StringReader(local1));
try
{
local2.Load(local3);
}
catch (XmlException local4)
{
this._line = this._line + System.Web.UI.Util.LineCount(text, 0, local0);
if (local4.LineNumber >= 0)
this._line = this._line + local4.LineNumber - 1;
throw;
}
this.AppendLiteralString(local1);
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -