I added a small function to Resource.Designer.cs and it works fine, the problem is that when I add or remove something from Resource.resx, this function is always deleted, is there any indicator that I could to put or bypass this in any case?
Thank!
This is a very simple method used as an indexer.
internal static string Keys(string key)
{
return ResourceManager.GetString(key, resourceCulture);
}
I did this because you cannot do Properties.Resources and then concat the value. An extension may work, however I tried, and it gets fancy, because all this is a static method and you don't want to instantiate.
Ideas?
source
share