All 7 Things I've Written About csharp
Learnings I'll find when I try to do them again.
![AI generated picture of person sitting on a pile of neon puzzle pieces.](https://res.cloudinary.com/dk3rdh3yo/image/upload/w_526,dpr_auto,f_auto/v1702771618/blog/choosing-between-dotnet-controllers-and-minimal-apis/0_3_fq7ufl.webp)
Choosing Between Controllers and Minimal API for .NET APIs
.NET now offers several methods for creating APIs. Let's cover the pros & cons of building with Controllers, Minimal API, and more.
![An AI generated image of neon robot](https://res.cloudinary.com/dk3rdh3yo/image/upload/w_526,dpr_auto,f_auto/v1699760915/blog/alias-any-type-in-csharp-12/0_2_stpqof.webp)
Alias any Type with C# 12
With C# 12, you can now alias type, including tuples, array, pointer, and unsafe types.
![An AI generated image of neon blocks stacked in a pile on a black background.](https://res.cloudinary.com/dk3rdh3yo/image/upload/w_526,dpr_auto,f_auto/v1699487654/blog/primary-constructors-in-csharp-12-dotnet/neon_blocks_zwe36p.webp)
Using Primary Constructors in C# 12 & .NET 8
C# 12 provides a new way to use constructors that can potentially save you time, but there are several things to watch out for.
![AI generated image of neon computers and servers on black background](https://res.cloudinary.com/dk3rdh3yo/image/upload/w_526,dpr_auto,f_auto/v1688346051/blog/choosing-between-blazor-server-or-web-assembly/neon_server_and_pc_on_a_black_background_ompvv6.png)
Choosing Between Blazor Server or WebAssembly
Building for the web using a language you're already comfortable with? Sounds like a great idea as long as it's easy to use and performs well for clients.
![AI generated image of emoji's with various emotions on black background](https://res.cloudinary.com/dk3rdh3yo/image/upload/w_526,dpr_auto,f_auto/v1688347562/blog/sentiment-analysis-with-opentok-and-azure-face-api/variety_of_neon_face_emojis_yt92pz.png)
I See What You're Saying: Sentiment Analysis With OpenTok and Azure Face API
Building a multi-party video conference that allows us to analyze the sentiment of each participant based on their facial expression.
![AI generated image of a symmetrical pair of neon computers](https://res.cloudinary.com/dk3rdh3yo/image/upload/w_526,dpr_auto,f_auto/v1688342553/blog/using-auto-mapper-with-asp-net-core-3/symmetrical_pair_of_neon_computer_symbols_vwceqe.png)
Using AutoMapper with ASP.NET Core 3
AutoMappers usage via dependency injection changed in ASP.NET Core 3. This post shows how to use the new implementation.
![AI generated image of neon gears on a black background](https://res.cloudinary.com/dk3rdh3yo/image/upload/w_526,dpr_auto,f_auto/v1688344552/blog/adding-hateoas-to-an-asp-net-core-api/neon_gears_kvjrcb.png)
Adding HATEOAS to an ASP.NET Core API
RESTful APIs provide a great way to make our APIs easier for users to consume. How can we make discovering endpoints and capabilities easier?