Code Maze Author

Marko Hrnčić

Marko is a software enthusiast deeply immersed in the .NET world. As a team lead, he directs other engineers and fosters personal growth by continuously learning from team members. He actively contributes to the open-source community, by sharing his expertise, and loves to compete in hackathons using .NET as his platform of choice. Outside of his professional pursuits, Marko is a sports fan, with a particular fondness for watching football during his free time. You can find Marko’s work on his GitHub profile (https://github.com/mahrncic).
Also find me here:

MY ARTICLES:

Bogus in C#: Generate Realistic Fake Data in .NET

Bogus is a .NET library that generates realistic fake data, such as names, emails, addresses and whole object graphs, from rules we write once per class. We'll use it to fill C# objects, make the output repeatable for tests, and save it to an EF Core database. Then...

What is the Difference Between a DTO and a POCO?

In this article, we are going to learn the differences between a DTO (Data Transfer Object) and a POCO (Plain Old CLR/C# Object). We use these types of objects in everyday coding. However, we are often not sure what the real differences are. We are going to dive...

Any() vs Count() in C#: Which One Is Better?

To check whether a collection has anything in it, use Any(). It stops at the first element; Count() may walk the whole sequence to produce a number we then throw away. The exception is a List<T>, an array, or anything else with a Count or Length property. Those...

Mapster in ASP.NET Core: Getting Started

Mapster is a convention-based object mapping library for .NET: one Adapt<TDestination>() call copies a Person into a PersonDto with zero configuration when property names match. It is MIT-licensed with no conditions attached, and faster than AutoMapper in most...