public UrlTokenizerChinaCache(JToken node) : base(node) { if (node["algorithmId"] != null) { this._AlgorithmId = (ChinaCacheAlgorithmType)ParseEnum(typeof(ChinaCacheAlgorithmType), node["algorithmId"].Value <string>()); } if (node["keyId"] != null) { this._KeyId = ParseInt(node["keyId"].Value <string>()); } }
public UrlTokenizerChinaCache(XmlElement node) : base(node) { foreach (XmlElement propertyNode in node.ChildNodes) { switch (propertyNode.Name) { case "algorithmId": this._AlgorithmId = (ChinaCacheAlgorithmType)ParseEnum(typeof(ChinaCacheAlgorithmType), propertyNode.InnerText); continue; case "keyId": this._KeyId = ParseInt(propertyNode.InnerText); continue; } } }