I want to read all the strings from a resx file and load it into an array without looping. I'm working in an asp.net web application and i'm using C#. How can i get the strings?
T开发者_开发百科hank you
NLV
string[] allStrings;
using (var reader = new ResXResourceReader(fileName))
{
allStrings = reader.Cast<DictionaryEntry>().Select(o => o.Value).OfType<string>().ToArray();
}
精彩评论