I have two resource files under Properties in Windows c# Project viz.
1).Properties.en.Resx
2).Properties.tr.Resx
I am not able to add Resource in Properties.en.Resx or in Properties.tr.Resx
Please help me regarding this
What I have tried:
using (ResXResourceWriter resx = new ResXResourceWriter(@"Properties.en.Resx"))
{
resx.AddResource("Title", "Classic American Cars");
resx.Generate();
}
//not reflecting above resource after reading in below code
strs = new List<dictionaryentry>();
ResourceSet rs=ResourceManager.GetResourceSet(CultureInfo, true, false);
IEnumerator e = rs.GetEnumerator();
while (e.MoveNext())
{
strs.Add((DictionaryEntry)e.Current);
}
grdResources.DataSource = strs;
Using Above ,am able to get list