我有一个资源文件,我正在循环将项目添加到 aList
中,我试图弄清楚它如何决定将哪个项目放在 index[0]、[1] 等处
我的代码如下:
...
List<string> Questions= new List<string>();
ResourceManager resources = new ResourceManager(typeof(QuestionResource));
ResourceSet resourceSet = resources.GetResourceSet(CultureInfo.CurrentUICulture, true, true);
foreach (DictionaryEntry entry in resourceSet)
{
Questions.Add(entry.Value.ToString());
}
result.Data = Questions;
....
现在我的列表没有按字母顺序返回,也没有按资源文件中列出的顺序返回。
我想将它们显示在列表中,就像它们在资源文件中显示的方式一样,不是按字母顺序排列的。
有什么想法吗?