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