开发者

Get all entries in resx file ASP.NET

开发者 https://www.devze.com 2023-02-24 02:09 出处:网络
I\'m using a .resx resource file to store some \"dictionary\" data, wich i want to display in a grid in my web app. let\'s say i have the \"tags.resx\" file, and using custom tool resxcodegenerator -

I'm using a .resx resource file to store some "dictionary" data, wich i want to display in a grid in my web app. let's say i have the "tags.resx" file, and using custom tool resxcodegenerator - i can acce开发者_JS百科ss Tags.my_tag in C#. But what i need is a way to get all entries in my file in a collection. Any ideas how could i do this ? Thanks!


try this

var allEntries = new ResourceManager(typeof(Tags))
        .GetResourceSet(CultureInfo.CurrentCulture, false, true);
0

精彩评论

暂无评论...
验证码 换一张
取 消