public void ReplaceAttributes(object content) { content = XContainer.GetContentSnapshot(content); this.RemoveAttributes(); base.Add(content); }