Я нашел этот пример того, как читать из файла .resxC# Как написать файл .resx?
public static void ReadResourceFile()
{
ResourceManager rm = new ResourceManager("XmlReadAndWritePractice.Resource1", Assembly.GetExecutingAssembly());
//String strWebsite = rm.GetString("Website",CultureInfo.CurrentCulture);
String strName = rm.GetString("FirstName");
Console.WriteLine(strName);
}
Но как я могу редактировать или добавить в файл .resx? Я нашел следующий пример, но это не то, что я ожидаю.
private static void CreateResourceFile()
{
// Creates a resource writer.
IResourceWriter writer = new ResourceWriter("c:\\temp\\Resource1.resx");
// Adds resources to the resource writer.
writer.AddResource("String 1", "First String");
writer.AddResource("String 2", "Second String");
writer.AddResource("String 3", "Third String");
// Writes the resources to the file or stream, and closes it.
writer.Close();
}
Ресурс Ссылки
https://stackoverflow.com/questions/36051558/c-sharp-how-do-i-write-to-a-resx-file должно помочь –