Get all entries in resx file ASP.NET
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);
精彩评论