获取resx文件ASP.NET中的所有条目

问题描述

| 我正在使用.resx资源文件存储一些\“ dictionary \\”数据,直到我想在我的Web应用程序的网格中显示它。假设我有\“ tags.resx \”文件,并使用自定义工具resxcodegenerator-我可以在C#中访问Tags.my_tag。但是我需要的是一种在集合中获取文件中所有条目的方法。 任何想法我该怎么做? 谢谢!     

解决方法

尝试这个
var allEntries = new ResourceManager(typeof(Tags))
        .GetResourceSet(CultureInfo.CurrentCulture,false,true);