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