Microsoft has launched its third preview of .NET 10, a deliberate replace to the corporate’s cross-platform, open-source, utility improvement platform. Among the highlights, .NET 10 Preview three introduces an AOT-safe constructor for ValidationContext
, extra highly effective C# language extensions, and Blazor WebAssembly enhancements.
.NET 10 Preview three was unveiled April 10 and will be downloaded from dotnet.microsoft.com. It follows Preview 2, revealed March 18, and Preview 1, revealed February 25. .NET 10 is more likely to ship as a manufacturing launch in November.
Among the capabilities in third preview is an AOT-safe constructor for the ValidationContext
class in the usual library. The ValidationContext
class is used throughout choices validation to offer validation context. However, as a result of extracting the DisplayName
can contain reflection, present constructors of ValidationContext
are presently marked as unsafe for AOT (forward of time) compilation. The new constructor ensures AOT security, enabling builders to make use of ValidationContext
in native builds with out bumping into errors or warnings.