private void Register(LocalizedHtmlString child)
 {
     _children.Add(child);
     foreach (var replacement in Replacements)
     {
         child.Replace(replacement.Key, replacement.Value);
     }
     child.Process(Processors.ToArray());
 }
 private void Register(LocalizedHtmlString child)
 {
     _children.Add(child);
     foreach (var replacement in Replacements)
         child.Replace(replacement.Key, replacement.Value);
     child.Process(Processors.ToArray());
 }
 /// <summary>
 /// Registers itself to the parent, inheriting all of its replacement parameters
 /// </summary>
 /// <param name="parent">parent node whose replacement parameters to take over</param>
 /// <returns>returns itself</returns>
 public LocalizedHtmlString WithParent(LocalizedHtmlString parent)
 {
     parent.Register(this);
     return(this);
 }
 /// <summary>
 /// Registers itself to the parent, inheriting all of its replacement parameters
 /// </summary>
 /// <param name="parent">parent node whose replacement parameters to take over</param>
 /// <returns>returns itself</returns>
 public LocalizedHtmlString WithParent(LocalizedHtmlString parent)
 {
     parent.Register(this);
     return this;
 }