c# dictionary键值对常用方法


1.for循环获取dictionary的键和值

foreach(var item in DicTest ){
    //item.Key
    //item.Value
}

相关