示例#1
0
        public static Dictionary <string, string> ToAttributeDictionary(this AttributeList attributeList)
        {
            var attributeLines = attributeList.Select(a => new ProductAttributeLine
            {
                name    = a.name,
                options = a.options
            }).ToList();

            return(attributeLines.ToAttributeDictionary());
        }