Exemple #1
0
 public ESearchCaptionItem(JToken node) : base(node)
 {
     if (node["fieldName"] != null)
     {
         this._FieldName = (ESearchCaptionFieldName)StringEnum.Parse(typeof(ESearchCaptionFieldName), node["fieldName"].Value <string>());
     }
 }
Exemple #2
0
 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;
         }
     }
 }