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