我有这个:
void SaveMultiple(Dictionary<string, decimal> updates)
{
ColumnSet cs = new ColumnSet();
cs.Attributes = new string[] { "att1", "att2", "add3" };
}
我的属性数组需要是字典的所有字符串值。
我该怎么做?
谢谢
最佳答案
你是说这本字典的键?然后 updates.Keys.ToArray()
会将它们提供给您。
关于C# 字典到数组,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30478456/