When to Use The FromService Attribute
The [FromServices] attribute allows method level dependency injection in Asp.Net Core controllers.
The [FromServices] attribute allows method level dependency injection in Asp.Net Core controllers.
Microsoft is adding a new feature to C# 8 called Nullable Reference Types. Which at first, is confusing because all reference types are nullable… so how this different? Going forward, if the feature is enabled, references types are non-nullable, unless you explicitly notate them as nullable.
Naming is subjective and situational, it’s an art, and with most art, we discover patterns. I’ve learned a lot through the reading of other’s code. In this article, I’ve compiled 9 guidelines I wished others had followed when I read their code.
There’s a heated debate around single statements and whether they should have curly braces or not.
Understanding code is the first step to modifying it.
Codifying the secret sauce is instrumental in writing maintainable and successful applications.