Tag: dotnet
-

String manipulation in C# and .NET: The complete guide
Strings are one of the most frequently used data types in C#. Whether you’re developing a small utility or a complex enterprise application, string manipulation plays a crucial role.
-

String interning in .NET
String interning in .NET is an optimization technique used by the Common Language Runtime (CLR) to reduce memory usage and improve performance when working with string literals.
-

Immutable strings in C#: Why strings cannot be changed
Have you ever wondered why strings in C# behave differently from other data types? You concatenate strings, replace characters, and manipulate them in various ways, yet each operation seems to create a new string rather than modify the existing one.
-

Zero allocation techniques in C#: Using ref struct and readonly struct
One effective way to optimize your C# code is by employing zero-allocation techniques. In this article, we’ll discuss two powerful tools available in C# for this purpose: ref struct and readonly struct.
-

A clear comparison between Class and Record in C#
Discover the key differences between Classes and Records in C# and learn when to use each. From immutability to value-based equality, this article explores the advantages of records over traditional classes, supported by clear explanations and code examples.
-

Generate unique file names in C#
In C# development, generating unique file names is crucial to avoid conflicts. Using `Guid.NewGuid()`, you can create unique file names with ease. This article explores how to use GUIDs for file naming, ensuring consistency and preventing overwrites in your applications.
-

Understanding System.String, String, and string in C# – What’s the Difference?
In C#, strings are essential for working with text, but the distinction between System.String, String, and string often causes confusion. In this article, we’ll explore the differences, helping you understand how these terms relate and when to use each one. Discover why string is the most popular choice in C# development, the role of System.String,…
-

The dark side of the GUID
In this article we are going to deep dive in a very old battle: GUID vs INT and try to understand what are the benefits from each one. Introduction When a CPU processes data, the size of the data being processed—such as a GUID (128-bit) versus an INT (32-bit)—has a significant impact on the efficiency…
-

Microsoft offloads the Mono Project to WineHQ: A new era for Open-Source
In this article, we will explore the implications of Microsoft’s decision to hand over the reins of the Mono Project to WineHQ, delve into the history and significance of Mono, and consider what this means for the future of open-source development.
-

ASP.NET 9 Static Web Asset Delivery
ASP.NET 9 brings a new way to delivery static files with native compression in different formats. Let’s check out the changes.