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