I don’t have to tell you why you need to write clean code. Here you’ll see some tips about how to name things and how to structure functions.
Continue reading
Sometimes on your tests you need to access test files, for example for mocking external data. With manifest resources you can easily reference files for your tests.
Continue reading
BenchmarkDotNet allows you to test the performance on .NET methods. So let’s answer a question: is the Enum.HasFlag method really that slow?
Continue reading
Internal members can be accessed only within the same assembly. And for different assemblies? Here’s for you the InternalsVisibleTo attribute!
Continue reading
Singleton, Scoped and Transient: these are the possible lifetimes for DI with .NET Core. How do they change the way objects are constructed?
Continue reading
We’ve already seen some of the things you should know about enums in C#. Here we’ll dive into Flagged enumerations, serialization and so on.
Continue reading