📜  填充字典 c# 代码示例

📅  最后修改于: 2022-03-11 14:48:41.378000             🧑  作者: Mango

代码示例2
var students = new Dictionary()
{
    { 111, new StudentName {FirstName="Sachin", LastName="Karnik", ID=211}},
    { 112, new StudentName {FirstName="Dina", LastName="Salimzianova", ID=317}},
    { 113, new StudentName {FirstName="Andy", LastName="Ruth", ID=198}}
};