/// <summary> /// Writes the attribute. /// </summary> /// <param name="name">The name.</param> /// <param name="value">The value.</param> /// <param name="defaultValue">The default value.</param> protected void WriteAttribute(string name, Size value, Size defaultValue) { if (this.settings.WriteDefaultValues || !value.Equals(defaultValue)) { this.writer.WriteAttributeString(name, value.Format()); } }
/// <summary> /// Writes a size attribute. /// </summary> /// <param name="output">The output.</param> /// <param name="name">The name.</param> /// <param name="value">The value.</param> protected static void WriteAttribute(XmlWriter output, string name, Size value) { output.WriteAttributeString(name, value.Format()); }