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