Overview of New Features in .NET 10

Library Improvements Numeric Ordering for String Comparison In .NET 10, the System.String class adds a CompareAsNumbers method for comparing strings as numbers. This is very useful for sorting strings that contain numbers, such as file names or version numbers. StringComparer numericStringComparer = StringComparer.Create(CultureInfo.CurrentCulture, CompareOptions.NumericOrdering); Console.WriteLine(numericStringComparer.Equals("02", "2")); // Output: True foreach (string os in new[] { "Windows 8", "Windows 10", "Windows 11" }.Order(numericStringComparer)) { Console.WriteLine(os); } // Output: // Windows 8 // Windows 10 // Windows 11 HashSet<string> set = new HashSet<string>(numericStringComparer) { "007" }; Console.WriteLine(set.Contains("7")); // Output: True UTF-8 Support for Hexadecimal String Conversion .NET 10 adds UTF-8 support for hexadecimal string conversion operations in the Convert class. These new methods provide an efficient way to convert between UTF-8 byte sequences and hexadecimal representations without intermediate string allocations: ...

March 10, 2026

Upgrade Projects with .NET Upgrade Assistant

What is .NET Upgrade Assistant? .NET Upgrade Assistant is a tool that helps migrate legacy projects to newer .NET versions. It can help you: Identify dependencies and API usage. Recommend an appropriate .NET target framework. Apply or suggest code changes required for migration. Use .NET Upgrade Assistant in Visual Studio You can install the .NET Upgrade Assistant extension in Visual Studio. Use .NET Upgrade Assistant from the command line Install the CLI tool: ...

March 10, 2026