Question

I'm browsing through the System.Web.Mvc library and I don't know how to navigate to the resource files.

I see a line of code like this...

throw new ArgumentException(MvcResources.Common_NullOrEmpty, "contentPath");

So I click through on Common_NullOrEmpty, which brings here

// System.Web.Mvc.Resources.MvcResources
internal static string Common_NullOrEmpty
{
    get
    {
        return MvcResources.ResourceManager.GetString("Common_NullOrEmpty", MvcResources.resourceCulture);
    }
}

I've tried searching for Common_NullOrEmpty with no results.

Where are these resources buried? and more importantly, how would I go about finding this on my own?

Was it helpful?

Solution

You can find the resources under the Assembly in the Tree View:

Resources

You are then shown a table on the right with all the strings in:

Resource Strings

Sometimes I have to click "Save" at the top of the Resource View and look at them in NotePad++ if I cannot find them in that list.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top