/// <inheritdoc /> public override XmlElement BuildXmlElement(XmlDocument doc, string name) { XmlElement element = XmlHelper.CreateElement(doc, name); element.AppendChild(APIProperty.BuildXmlElement(doc, ClassHelper.GetMemberName(() => APIProperty))); element.AppendChild(PropertyVal.BuildXmlElement(doc, ClassHelper.GetMemberName(() => PropertyVal))); XmlHelper.AppendTextElement(element, ClassHelper.GetMemberName(() => PropertyRight), PropertyRight); return(element); }
/// <inheritdoc /> public override XmlElement BuildXmlElement(XmlDocument doc, string name) { XmlElement element = XmlHelper.CreateElement(doc, name); element.AppendChild(APIProperty.BuildXmlElement(doc, ClassHelper.GetMemberName(() => APIProperty))); element.AppendChild(PropertyVal.BuildXmlElement(doc, ClassHelper.GetMemberName(() => PropertyVal))); XmlHelper.AppendTextElement(element, ClassHelper.GetMemberName(() => PropertyRight), PropertyRight); if (PropertyEnumValues != null) { element.AppendChild(PropertyEnumValues.BuildXmlElement(doc, ClassHelper.GetMemberName(() => PropertyEnumValues))); } XmlHelper.AppendTextElement(element, ClassHelper.GetMemberName(() => PropertyComment), PropertyComment); XmlHelper.AppendTextElement(element, ClassHelper.GetMemberName(() => PropertyGroup), PropertyGroup); XmlHelper.AppendTextElement(element, ClassHelper.GetMemberName(() => PropertyValueType), PropertyValueType); return(element); }