public DocumentEntryMatchAttributeCondition(JToken node) : base(node) { if (node["attribute"] != null) { this._Attribute = (DocumentEntryMatchAttribute)StringEnum.Parse(typeof(DocumentEntryMatchAttribute), node["attribute"].Value <string>()); } }
public DocumentEntryMatchAttributeCondition(XmlElement node) : base(node) { foreach (XmlElement propertyNode in node.ChildNodes) { switch (propertyNode.Name) { case "attribute": this._Attribute = (DocumentEntryMatchAttribute)StringEnum.Parse(typeof(DocumentEntryMatchAttribute), propertyNode.InnerText); continue; } } }