如何使用 Linq创建一个Dictionary(甚至更好的一个)?ConcurrentDictionary
例如,如果我有以下 XML
<students>
<student name="fred" address="home" avg="70" />
<student name="wilma" address="home, HM" avg="88" />
.
. (more <student> blocks)
.
</students>
加载XDocument doc;并想要填充一个ConcurrentDictionary<string, Info>(其中键是名称,并且Info是某个类持有地址和平均值。填充Info现在不是我关心的问题),我该怎么做?