private Dictionary<string, Dictionary<string, string>> sort(Dictionary<string, Dictionary<string, string>> prods)
{
int a, b;
var sortedDict =new Dictionary<string, Dictionary<string, string>>();
sortedDict = from entry in prods orderby entry.Value["SortOrder"] ascending select entry;
return sortedDict;
}
Run Code Online (Sandbox Code Playgroud)
错误:
错误4无法将类型'System.Linq.IOrderedEnumerable >>'隐式转换为'System.Collections.Generic.Dictionary>'。存在显式转换(您是否缺少演员表?)