📜  声明字典 c# 代码示例

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

代码示例2
var students2 = 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 }
        };