i am trying to add a list of values to my existing resource file
For example in my resource file i have key value pair like this....
"resourceTestKey1" - "resourceTestValue1"
"resourceTestKey2" - "resourceTestValue2"
"resourceTestKey3" - "resourceTestValue3"
"resourceTestKey4" - "resourceTestValue4"
Currently i am trying to add one more key value pair to my Resource File using below code
System.Resources.ResXResourceWriter resWriter = new System.Resources.ResXResourceWriter(this.resourceFilePath);
resWriter.AddResource("resourceTestKey5","resourceTestValue5");
Now all my old resource file values are deleted..
and resource file contains only this entry "resourceTestKey5","resourceTestValue5"
How can i add a new resource key value pair by retaining the current values