How To Use IServiceCollection in Console Applications - What You Need To Know
How can you use an IServiceCollection in console applications to get dependency injection? Is this a viable option if you don't want to use Autofac?
How can you use an IServiceCollection in console applications to get dependency injection? Is this a viable option if you don't want to use Autofac?
Learn how to use MudBlazor with Blazor interactive SSR! Blazor's Server Side Rendering can be used alongside MudBlazor for building your next Blazor app!
Want to add API key authentication middleware into your ASP.NET Core application? Check out this article for a simple code example that shows you how!
Check out these 3 simple examples of regular expressions in C#! If you're new to regex and coding in CSharp, these are a perfect starting point for you!
Learn how to automatically cast between types in C#! Leveraging implicit operators in C#, we can do away with explicit casts to convert between types.
Learn how to use BenchmarkDotNet to effectively create and run benchmarks on your C# code. Dig into where you have opportunities to optimize your C# code!
Learn how to use Polly in C# to handle faults and retries with ease! Check these 3 code examples showcasing different use cases of Polly in C#!
Leverage Activator.CreateInstance in C#, part of reflection in C#, to create object instances! This beginner's guide walks you through simple C# code examples.
Use Testcontainers in ASP.NET Core testing to get better coverage! Learn how to simulate dependencies, test in parallel, and integrate with CI/CD tools!
Interested in using Google Drive and Google Sheets in C#? Get started with the Google Sheets API to access spreadsheets in C# in your own dotnet applications!
Are you struggling with memory leaks due to your event handlers and events in C#? Check out how weak events in C# can help with garbage collection in your apps!
Learn how to format a string as Base64 in CSharp, including examples of encoding and decoding strings. Improve your coding skills with these practical tips!
Wondering how to compare strings in CSharp? We'll compare using string.Equals(), string.Compare(), and == operator to weigh the pros and the cons.
Check out this example vertical slice architecture in ASP.NET core! Together we'll look at building a flight booking app using vertical slice architecture.
Check out this article to see how we can use System.Reactive (Rx) to implement the observer pattern to deal with event-driven scenarios! Source code included!
Learn how the Strategy Pattern in C# provides flexibility! Let's explore an example of the strategy pattern in C# along with the pros and cons of using it!
Let's explore examples of the Mediator Pattern in C#! See how the Mediator Pattern in C# can promote loose coupling, and increase scalability.
Simplify your code with the remove control flag refactoring technique in C#. See the benefits of removing control flags in this guide to applying the technique.
Learn how to build an ASP.NET core web API! This tutorial for beginners will guide you through setting up the project to building the API endpoints.
In this CSharp switch statement tutorial, you'll learn how to properly use switch statements in your programs. Explore examples, features, and best practices!
Unit test your Blazor project! Improve code quality and catch bugs early with improved test coverage. Check out this Blazor unit testing tutorial now!
Improve your Blazor unit testing! Look no further than this article on Blazor unit testing with bUnit. Get started from scratch and write useful tests!
Learn how to call JavaScript from Blazor web assembly using JavaScript Interop in this guide! Perfect for developers learning more about Blazor web assembly!
Learn how to make a todo list in C# using ASP.NET Core and tackle data binding and user interface design. Blazor todo list - Perfect for a beginner portfolio!
If you want to get started with web development in dotnet core, check this out! We'll get you up and running in VS Code for ASP.NET Core web development!
If you want to get started with web development in dotnet core, check this out! We'll get you up and running in Visual Studio for ASP.NET Core web development!
If you're looking to create and analyze dotnet benchmarks, you'll want to get started with BenchmarkDotNet. We'll explore benchmarking in C# to get you started!
If you're familiar with Autofac and module registration but want to make things easier, automatic module discovery might be for you! Let's see how it works!
Want to have a plugin architecture that supports dynamic loading for Blazor? Follow this tutorial for a Blazor plugin architecture that leverages Autofac!
Like building ASP.NET web applications and want to maximize extensibility? This guide is a how-to on using a plugin architecture in Blazor. Check it out!
Whether it's an ASP.NET Core or console app, we can use the decorator pattern with Autofac for powerful results! Let's explore an Autofac example for each!
After some of the basics of dictionaries in C#, what else do dictionaries in dotnet have to offer us? Let's dive in before we get into the performance deep end!
Dictionaries in C# are heavily used by all levels of software developers. Let's look at some dictionary use cases and comparisons to other collections in C#!
In this article, we'll dive into a dictionary in C#! There are many collections for us to use in dotnet, and the dictionary class is one that is invaluable!
For beginners, it's hard to find projects to work on due to distractions. Writing a program to find the area of a rectangle can teach so many valuable lessons!
Have you ever wanted to change a picture into ASCII art? Now you can with your very own C# program that can generate ASCII art! Sample code included!
Want more flexible, extensible, and testable code? We'll use Autofac net core! What is Autofac? It's a powerful Dependency Injection framework in dotnet!
In C#, how can we balance asynchrony and laziness? Is there such a thing as async lazy? Let's explore our options built into dotnet!
Implicit operators in C# are a feature that can make our code more readable and expressive. But beware! Misuse can backfire and cause a great deal of headaches!
Exceptions and exception handling are a core part of C# and many other programming languages. But what If we didn't need to be throwing them?
Want to see how implicit operators work in C#? Check out this example code to see how you can make a multi-type object in dotnet that uses implicit operators!
The facade pattern is useful for hiding complexity by moving dependencies behind an API. Let's dive into the facade design pattern in C# in this article!
If you're writing asynchronous code in C# and using EventHandlers, odds are you've had issues with exceptions. Task EventHandlers might be consideration!
Dealing with async EventHandlers in C# can be very problematic. async void is a pattern cause headaches with exceptions. Check out this simple solution!
Most intermediate dotnet devs writing async await code in C# will come across async void at some point. Here's a creative solution for avoiding the headaches.