public virtual void AppendLiteralString (string s)
{
if (s == null || s.Length == 0)
return;
if (childrenAsProperties || !isIParserAccessor) {
if (defaultPropertyBuilder != null) {
defaultPropertyBuilder.AppendLiteralString (s);
} else if (s.Trim ().Length != 0) {
throw new HttpException (String.Format ("Literal content not allowed for '{0}' {1} \"{2}\"",
tagName, GetType (), s));
}
return;
}
if (!AllowWhitespaceLiterals () && s.Trim ().Length == 0)
return;
if (HtmlDecodeLiterals ())
s = HttpUtility.HtmlDecode (s);
AddChild (s);
}