News

C# also lets us create what’s called value objects, a special type of object used in domain-driven design that allows us to articulate domain concepts simply, clearly, and concisely.
Practical .NET Creating Sortable Objects with IComparable and Planning Your Interface Strategy The IComparable interface lets you create objects that know how to sort themselves correctly. This ...
God object example in C# The solution to the God object anti-pattern is to split related functionality into smaller and more manageable classes — i.e., to design classes that have strong ...
C# Corner Create Object Clones Through the Prototype Pattern in .NET The Prototype Pattern involves cloning objects. Learn how to create both deep and shallow clones for instances in your program ...
A Record data type introduced in C# 9 allows for the definition of immutable data models. Records are ideal for defining Data Transfer Objects (DTOs) due to their simplified syntax, automatic method ...
I've got a C# class that is all string types, nothing fancy, and once the item is created it gets serialized with the new System.Text.Json stuff and then attempts to POST to a web server.