示例#1
0
        //得到banggo上的尺码,主要用于和taobao上的尺码建立对应关系
        public Dictionary <string, string> GetBSizeToTSize(HtmlDocument doc)
        {
            HtmlNode htmlNodeSizeList = doc.GetElementbyId(Resource.SysConfig_SizeListId);

            htmlNodeSizeList.ThrowIfNull(Resource.ExceptionTemplate_MethedParameterIsNullorEmpty.StringFormat(
                                             new StackTrace()));

            HtmlNodeCollection sizes = htmlNodeSizeList.SelectNodes("a");

            sizes.ThrowIfNull(Resource.ExceptionTemplate_MethedParameterIsNullorEmpty.StringFormat(
                                  new StackTrace()));

            return(sizes.ToDictionary <HtmlNode, string, string>(sizeNode => sizeNode.InnerText.Trim(), sizeNode => null));
        }