Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
You can start with this:
IEnumerable<object> GetResources(System.Reflection.Assembly inAssembly, System.Globalization.CultureInfo inCultureInfo) =>
((System.Resources.ResourceManager)inAssembly
.GetTypes()
.FirstOrDefault(type => type.Name == "Resources")
.GetProperty("ResourceManager", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Static)
.GetValue(null, null))
.GetResourceSet(inCultureInfo, true, true)
.OfType<System.Collections.DictionaryEntry>()
.Select(item => item.Value);
var resources = GetResources(System.Reflection.Assembly.GetCallingAssembly(), System.Globalization.CultureInfo.InvariantCulture);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question