You can control the passed name via the constructor.
public class HtmlHead : XElement
{
public HtmlHead(object content) : base("head")
{
this.Add(content);
}
public HtmlHead(params object[] content) : base("head", content) { }
}
When an item is added, change notification is performed or you can create a custom method for adding which everyone should use.
Jaroslav Jandek
2010-07-11 06:28:08