Best of C#March 2025

  1. 1
    Article
    Avatar of collectionsCollections·1y

    Creating a Simple MMO Game with Unity and SpacetimeDB

    Learn how to build a simple MMO game using Unity, C#, and SpacetimeDB with this step-by-step tutorial. It covers setting up a Unity project, developing server-client architecture, implementing real-time multiplayer mechanics, and introducing competitive game features. Designed for beginners with some experience in Unity or C#.

  2. 2
    Article
    Avatar of tilThis is Learning·1y

    C# to Typescript Cheatsheet

    A comprehensive cheatsheet to help developers transition between C# and TypeScript, covering basic data types, variables, constants, arrays, enums, objects, classes, getters/setters, methods, null handling, loops, async/await operations, exception handling, LINQ vs TypeScript array methods, dependency injection, generics, reflection, events, threading, decorators, pattern matching, working with JSON, and the fluent API pattern.

  3. 3
    Article
    Avatar of bartwullemsThe Art of Simplicity·1y

    Goodbye sln!

    With .NET 9 SDK (9.0.200), Microsoft introduces a new XML-based solution file format (.slnx), replacing the older .sln files. The .slnx file is simpler and cleaner, eliminating issues related to GUIDs. Users can enable this feature through the Visual Studio Preview Features settings, migrate existing .sln files, or create new ones using the 'dotnet new sln --format slnx' command. However, the .slnx format is currently not supported in VSCode but works in JetBrains Rider.

  4. 4
    Article
    Avatar of dotnet.NET Blog·1y

    .NET AI Template Now Available in Preview

    The .NET AI Template is now available in preview, providing an easy way to start building AI-powered chat applications using Visual Studio, Visual Studio Code, or the .NET CLI. The template supports chat with custom data, integration with local vector stores or Azure AI Search, and customizable code for various functionalities. You can utilize the generated code to handle data ingestion and customize the chatbot's behavior. Future plans include expanding template offerings and gathering user feedback to shape future versions.

  5. 5
    Video
    Avatar of zoranhorvatZoran Horvat·1y

    The Secret Ingredient to Choosing Between IEnumerable and Collections in C#

    Learn the differences between IEnumerable and various collections like List, Dictionary, and HashSet in C#. Understand when to use each, based on performance and specific coding needs. The video also demonstrates typical scenarios and the efficiencies of each collection type, concluding with an explanation of when to return IEnumerable and its implications.

  6. 6
    Video
    Avatar of nickchapsasNick Chapsas·1y

    When to Use Classes and Structs in .NET

    Nick explains the difference between classes and structs in .NET, focusing on their memory allocation behaviors and performance implications. He provides code examples and discusses when it makes sense to use each, highlighting that classes are reference types allocated on the heap, whereas structs are value types typically allocated on the stack. The post also emphasizes that structs should be small to avoid performance issues related to memory copying.

  7. 7
    Article
    Avatar of infoworldInfoWorld·1y

    Microsoft .NET 10 Preview 2 shines on C#, runtime, encryption

    Microsoft has released .NET 10 Preview 2, featuring improvements in C# 14, encryption, and the .NET runtime. Key updates include enhancements to the JIT compiler's devirtualization capabilities, new ExportPkcs12 methods for encryption, and upgrades to the dotnet CLI tool. Additional improvements cover Blazor Web App project templates, .NET for Android and iOS, WPF performance, and NativeAOT apps' startup time and memory footprint.