News

You can also implement value objects using records in C#. To do this, you use the record keyword to define a record type that encapsulates data much the same way we did with the Author class earlier.
The is keyword lets you check if a variable is pointing to an object of a particular class (or a class that inherits from some class). For example, the code in this if block only executes if ...
For example, you might need to create an instance of one class from an instance of another ... we’ll see how we can implement a simple but fast object mapper in C#. First off, let’s create ...
I've got a C# class that ... a List<> of my class and the serializer builds the output correctly. All good so far! Now my issue comes when dealing with appending objects to my file.