When string literals are better than nameof(id)
In C# programming, magic strings often get a bad reputation. They are seen as a code smell, something to be avoided. The advent of nameof(x) in C# gave us a…
Read up on .NET news, tips, cautions... and other areas of technological interest.
In C# programming, magic strings often get a bad reputation. They are seen as a code smell, something to be avoided. The advent of nameof(x) in C# gave us a…
I’ve programmed primarily in C# for over 20 years. Before that, I did a mix of C++ and VB, and a bit of ruby. While I’m a long-time fan of…
.NET assemblies may contain embedded streams of arbitrary data. In an msbuild project this is done by adding an EmbeddedResource item to your project with the path to a file…