read string from .resx file in C#

Red Swan picture Red Swan · Oct 2, 2009 · Viewed 208.5k times · Source

How to read the string from .resx file in c#? please send me guidelines . step by step

Answer

nathanchere picture nathanchere · Dec 10, 2012

ResourceManager shouldn't be needed unless you're loading from an external resource.
For most things, say you've created a project (DLL, WinForms, whatever) you just use the project namespace, "Resources" and the resource identifier. eg:

Assuming a project namespace: UberSoft.WidgetPro

And your resx contains:

resx content example

You can just use:

Ubersoft.WidgetPro.Properties.Resources.RESPONSE_SEARCH_WILFRED