public void AddAttributeToPreserve(XmlElementReference.Attribute attribute)
 {
     if (this.attributesToPreserve == null)
     {
         this.attributesToPreserve = (IList <XmlElementReference.Attribute>) new List <XmlElementReference.Attribute>();
     }
     this.attributesToPreserve.Add(attribute);
 }
 public PreservedAttributeSourceContextReference(XmlElementReference.Attribute attribute)
     : base((DocumentNode)null)
 {
     this.attribute = attribute;
 }