C# 12: Default Parameters in Lambdas
Explains the new C# 12 feature allowing default parameter values in lambda expressions, with examples and usage in Minimal APIs.
Explains the new C# 12 feature allowing default parameter values in lambda expressions, with examples and usage in Minimal APIs.
Explains the pitfalls of comparing ReadOnlySpan<char> objects in C#/.NET, highlighting differences from string comparison due to memory representation.
Explains why ref-structs in C# are considered obsolete, focusing on the Obsolete attribute's impact on code coverage and Span usage.
A technical tutorial on how to read emails from Microsoft 365 inboxes using Microsoft Graph API and .NET, including setup and code examples.
A comprehensive guide to the various collection-like types in .NET (C#), explaining their differences, use cases, and best practices for selection.
Explains how to delete a database record in Entity Framework without loading it first, covering both classic and .NET 7+ methods.
An analysis of ChatGPT's capabilities and limitations for .NET and general programming, including code generation accuracy and its impact on platforms like Stack Overflow.
A developer shares a conversation with ChatGPT about .NET Dependency Injection, highlighting the AI's accuracy and potential.
Explains the new Environment.IsPrivilegedProcess API in .NET 8 for checking if a process has administrator rights.
Explains the key differences between abstraction and encapsulation, two fundamental object-oriented programming concepts.
Explores how to make a StringBuilder enumerable in C# using compiler duck typing and extension methods, despite it not implementing IEnumerable.
Explores new ArgumentException helper methods proposed for .NET 8, including ThrowIfNullOrWhiteSpace and ThrowIfNullOrEmpty for collections.
Introducing an unofficial .NET SDK for creating GitHub Actions, making automation easier for C# developers.
Explores new code analyzers coming in .NET 8, focusing on performance improvements like case-insensitive string comparisons.
Explains the new FrozenSet and FrozenDictionary collections in .NET 8, detailing their performance benefits and differences from read-only and immutable collections.
Debunks the myth that StringBuilder is always faster in C#, showing scenarios where simple concatenation or List<string> is better.
Explains how to measure heap allocations in .NET and reveals that an empty array consumes 24 bytes due to object overhead.
A guide to using AutoFixture with xUnit to generate anonymous test data, making unit tests more robust and maintainable.
Explains how to use FluentAssertions' Assertion Scopes to see all test failures at once, improving debugging efficiency.
Explores the pitfalls of mutable value types in C#/.NET, explaining why they are often avoided and the performance reasons for their limited use.