internal void WriteAttributes(IXmlWriter serializer) { serializer.WriteAttribute("name", this.Name); serializer.WriteAttribute("text", this.text); serializer.WriteAttribute("icon", this.Icon); }
/// <summary> /// </summary> /// <param name = "property"></param> protected override void SerializeSimpleProperty(PropertyTypeInfo <SimpleProperty> property) { if (property.Property.Value == null) { return; } writeStartProperty(Elements.SimpleObject, property.Name, property.ValueType); _writer.WriteAttribute(Attributes.Value, property.Property.Value); writeEndProperty(); }