#Dotnet-5
3 notas · última:
Everything You Want to Know About the Record Type in .NET… But Were Afraid to Ask
The article presents record types in .NET 5 as a fit for model types such as DTOs and POCOs, with less boilerplate and built-in support for immutability. It also notes that records generate equality members, GetHashCode(), and a useful ToString(), while mentioning a custom PropertiesToString() for collection properties.
Solid Principles Simplified (C#, .Net 5)
The article explains SOLID as a set of design principles that improve readability, changeability, extensibility, scalability, maintainability, and loose coupling in C# and .NET 5 code.
.NET 5 Source Generators Jump Start
The post walks through setting up a .NET 5 solution with a separate netstandard2.0 generator library, adding Roslyn packages, writing a simple ISourceGenerator, and consuming the generated code from a console app.
