C# overwriting a static field with reflection

Imagine that you have a NuGet package containing a bunch of static strings. These fields are intended to be used instead of magic strings, making it so anything that takes a dependency on this NuGet package will all be on the same page about these unique keys. Now suppose that these keys also represent the … [Read more…]