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