假设我有以下字符串
Type="Category" Position="Top" Child="3" ABC="XYZ"....
和 2 个正则表达式组:键和值
Key: "Type", "Position", "Child",...
Value: "Category", "Top", "3",...
我们如何将这两个捕获的组组合成键/值对对象,如 Hashtable?
Dictionary["Type"] = "Category";
Dictionary["Position"] = "Top";
Dictionary["Child"] = "3";
...