How to delete resource entry from resx in C#?

c#, resources, resx

Solution

Using the ResXResourceReader and ResXResourceWriter classes.

Read your resx using the reader and feed it into the writer, omitting the entries you want removed.

Problem

I know how to retrieve and create resource entries in an .resx file programmatically. I'm using the `ResourceWriter` and the `ResourceReader` for that approach. But now I want to clean up several items in my .resx file, and want to delete them. How can I achieve that?

Original source