Best of C#January 2024

  1. 1
    Article
    Avatar of andrewlock.NET Escapades·2y

    Understanding C# 8 default interface methods

    This post explains the concept of C# 8 default interface methods, how they work, and their benefits. It also highlights some issues and considerations when using default interface methods.

  2. 2
    Article
    Avatar of devtoDEV·2y

    SOLID Principle: Single Resposibility Principle

    The Single Responsibility Principle (SRP) states that a class should have only one responsibility and reason to change. This post provides an in-depth explanation of SRP, examples, and best practices for applying it.

  3. 3
    Article
    Avatar of milanjovanovicMilan Jovanović·2y

    How to Build a URL Shortener With .NET

    Learn how to design and implement a URL shortener in .NET, including system design, data model, unique code generation, URL shortening, and URL redirection. Explore possible improvements for caching, scaling, data sharding, analytics, and user accounts.

  4. 4
    Article
    Avatar of codemazeCode Maze·2y

    How to Get a Value of a Property By Using its Name in C#

    Learn how to retrieve the value of a property by its name in C# using reflection. Explore a utility method that allows you to dynamically retrieve public property values from an instance of a class.

  5. 5
    Article
    Avatar of codemazeCode Maze·2y

    How to Compare Two Lists Through One Property in C#

    This post explores different methods to compare two lists in C#, including foreach loops, LINQ, join operator, and HashSet. It also provides benchmark results to determine the most efficient approach.

  6. 6
    Article
    Avatar of godotGodot·2y

    Current state of C# platform support in Godot 4.2

    Godot 4.2 now has experimental support for exporting C# projects to Android and iOS. The platform support for C# projects in Godot has evolved from using Mono embedding APIs to .NET Core hosting APIs. Android support requires .NET 7.0 or higher and only supports the linux-bionic architectures. iOS support requires .NET 8.0 and is only available for the x64 architecture.

  7. 7
    Article
    Avatar of codemazeCode Maze·2y

    How to Check if Items of a List Exist in Another List in C#

    Learn different techniques to check if items of a list exist in another list in C# and how they perform.

  8. 8
    Article
    Avatar of codemazeCode Maze·2y

    Differences Between a Virtual and an Abstract Method in C#

    Learn the differences between virtual and abstract methods in C# and how they are used in object-oriented programming.

  9. 9
    Video
    Avatar of discdotDiscover .NET·2y

    How to use CancellationToken in ASP.NET C# API

    Learn how to use CancellationToken in an ASP.NET C# API to cancel requests and save resources. Propagate the cancellation token across your application and handle cancellation exceptions effectively.