<div class="cnblogs_code">
connect =<,> dictionary = connect.Split( [] { },StringSplitOptions.RemoveEmptyEntries).ToDictionary(x => x.Split()[],x => x.Split()[ (KeyValuePair<,> pair + + + dictionary[]);
<div class="cnblogs_code">
connect =<,> dictionary = connect.Split( [] { },StringSplitOptions.RemoveEmptyEntries).ToDictionary(x => x.Split()[],x => x.Split()[ (KeyValuePair<,> pair + + + dictionary[]);
connect 是连接字符串。
但是如果分别取到,分别赋值的话,应该首先完成上面,然后根据new一个List存相应需要的值。
demo: