Input string was not in a correct format

string.Format(@”{0}: {{ Name: ‘{1}’}},”, node.Attributes[“ID”].Value, node.Attributes[“Name”].Value)

字符串里包含{}得使用{{}}

Leave a Reply