-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What's new in .NET 6 Preview 3 #5890
Comments
.NET Libraries: System.Runtime.InteropServices - CollectionsMarshal.GetValueRefUpdating A new unsafe api has been added; for high preformance scenarios, that returns a Example: ref MyStruct value = CollectionsMarshal.GetValueRef(dictionary, key);
// Returns Unsafe.NullRef<TValue>() if it doesn't exist; check using Unsafe.IsNullRef(ref value)
if (!Unsafe.IsNullRef(ref value))
{
// Mutate in-place
value.MyInt++;
} |
Faster interface checking and castingOne of the advantages of more parts of the .NET VM moving from C++ to managed C# is its easier to contribute to, .NET 6 Preview 3 includes a 16% - 38% performance boost for interface casting; this is particularly useful for C#'s pattern matching to and between interfaces.
|
Thanks for adding these @benaadams ! |
.NET MAUICommunity Contributions
Windows Platform Added// images coming With the release of Project Reunion 0.5, .NET MAUI now supports Windows development on .NET 6 Preview 3. Using Visual Studio 16.10 latest public preview, clone the .NET 6 sample here for your first look at .NET MAUI with WinUI 3. When .NET build tooling support is enabled for Project Reunion, we will add Windows to the project template and enable single project features. Platform Lifecycle EventsA new extension has been added to enable application and library authors to easily hook-in to any native lifecycle event. A basic example is connecting to the Android back button event: public class Startup : IStartup
{
public void Configure(IAppHostBuilder appBuilder)
{
appBuilder
.UseMauiApp<App>()
.ConfigureLifecycleEvents(lifecycle => {
#if ANDROID
lifecycle.AddAndroid(d => {
d.OnBackPressed(activity => {
System.Diagnostics.Debug.WriteLine("Back button pressed!");
});
});
#endif
});
}
}
Incremental Updates// control gallery image coming
Changes from Preview 2
|
@leecow Since Dotnet 6 preview 3 is already released this issue can be closed. |
Preview 3 was released: https://devblogs.microsoft.com/dotnet/announcing-net-6-preview-3/ |
What's new in .NET 6 Preview 3
This issue is for teams to highlight work for the community that will release .NET 6 Preview 3.
To add content, use a new conversation entry. The entry should include the team name and feature title as the first line as shown in the template below.
Preview 1: #5853
Preview 2: #5889
Preview 3: #5890
Preview 4: #6098
Preview 5: #6099
The text was updated successfully, but these errors were encountered: