Quantcast
Channel: Getting a string dynamically from strings resources - Stack Overflow
Viewing all articles
Browse latest Browse all 6

Answer by skamlet for Getting a string dynamically from strings resources

$
0
0

I had the same problem using ASP.NET Core MVC and managed to solve it using

ResourceManager rm = new ResourceManager(typeof(YourResourceClass));
string someString = rm.GetString("someString");

Very similar to @Vlad's solution, but otherwise I had a MissingManifestResourceException


Viewing all articles
Browse latest Browse all 6

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>