【发布时间】:2018-12-24 19:47:01
【问题描述】:
当我写入 CRM 的跟踪日志时,我正在跟踪以查看字典的值。
我看到以下内容:
键: System.Collections.Generic.Dictionary`2+KeyCollection[System.String,System.Double] 价值: System.Collections.Generic.Dictionary`2+ValueCollection[System.String,System.Double]
我看过以前的答案并说要使用:
myDictionary.Keys, myDictionary.Values
我做了如下:
tracer.Trace("Key: {0} Value: {1}", currentSiblingHours.Keys, currentSiblingHours.Values);
为什么我仍然看不到实际的键和值?
【问题讨论】:
-
为什么是-1?这是一个完全有效的问题。
标签: c# dictionary key-value