InfoQ Homepage .NET Content on InfoQ
-
C# 9: Minor Improvements for Lambdas
Lambdas will be getting a small upgrade in C# 9 with two new features: discard parameters and static anonymous functions. Neither will change the way code is written, but they do clarify the developer’s intent.
-
C# 9: Range Operators in Switch Constructs and Pattern-Matching Expressions
Since C# was first introduced, developers have complained about the lack of a range operator in switch constructs. This made switches far less useful in C# than they were in VB. As part of the pattern-matching enhancements for C# 9, this limitation has been addressed.
-
C# 9: New `and`, `or`, and `not` Keywords for Pattern Matching
Though it may sound like our occasional April Fools Day joke, C# 9 is looking to add `and`, `or`, and `not` to its list of keywords. Specifically, for use in pattern matching.
-
MSMQ and .NET Core
Microsoft Message Queuing (MSMQ) is currently not available for .NET Core. While other message queuing systems are generally preferred, many enterprise applications were based on MSMQ and this creates a problem for teams looking to migrate from .NET Framework to .NET Core or the upcoming .NET 5. But a recent pull request for Reference Source may change the situation.
-
C# Futures: Null Check Operator
In the June 24th C# Language Design Meeting, Microsoft made a subtle change to the parameter null checking syntax. By changing it from “Type parameterName!” to “Type parameterName!!” they effectively introduced a new ‘null check operator’.
-
Microsoft Releases gRPC-Web for .NET
Last week, Microsoft released a production-ready implementation of the gRPC-Web protocol for .NET. Initially supported as an experimental feature, the component is now part of the grpc-dotnet project. The new component makes gRPC usable in the browser, allowing web applications to communicate directly with gRPC services without using an HTTP server as a proxy.
-
MAUI: a Multi-Platform App UI for .NET
Last month, during the 2020 edition of Build, Microsoft announced the roadmap for .NET MAUI, a multi-platform framework for building native device applications. The new framework comes as an evolution of Xamarin.Forms, providing native features for Android, iOS, macOS, and Windows.
-
C# 9: Type Inference for the New Keyword
In many situations, there is only one possible type allowed in a given place. And yet C# still requires you to explicitly list the type. Now that the Target-typed `new` expression proposal has been adopted into C# 9, such boilerplate code will no longer be necessary.
-
C# 9: Simplified Parameter Null Validation
Simplified parameter null validation has been promoted to a C# 9 feature. This narrowly tailored feature reduces the amount of code needed to validate non-null parameters to a single character in the function signature.
-
C# 9: Partial Method Enhancements for Source Generators
Source Generators in C# 9 will allow compiler-extensions to inspect code and then inject additional source code at compile-time. This injected code is then incorporated into the very same assembly that was being compiled. In order to facilitate this capability, Microsoft is removing most of the restrictions on Partial Methods.
-
C# 9: towards First Class Support for Scripting
One of the defining characteristics of “scripting” languages is they don’t need any boilerplate. The very first line of a file can be the declarations and statements you would normally see inside a function. In the updated Top-level statements proposal, this capability is planned for C# 9.
-
Microsoft Build 2020: Highlights
Last week Microsoft held the 10th edition of Build, its annual conference aimed at developers using Microsoft technologies. The online event included multiple important announcements and releases, such as the general availability of Blazor WebAssembly, updates on the upcoming .NET 5, Azure Static Web Apps, and new projects related to IoT and Artificial Intelligence.
-
OverOps for .NET: Tal Weiss Q&A
In January, OverOps announced that it is expanding its support to the .NET ecosystem. OverOps is a continuous reliability platform that allows developers to analyze and optimize code at runtime. InfoQ interviewed Tal Weiss, co-founder, CEO, and CTO at OverOps, about how engineers can benefit from using OverOps and the future of automating the production debugging process for .NET.
-
With Project Reunion Microsoft is Attempting to Unify Win32 and UWP APIs
At Build 2020, Microsoft announced Project Reunion with the aim of unifying app development across multiple Windows 10 versions and devices. The first three components of Project Reunion available to developers in preview are WinUI 3, WebView2 and MSIX (MSIX-Core).
-
Time is Running out on Silverlight
In approximately 15 months from now, Silverlight will effectively cease to exist. On October 12, 2021, users will no longer be able to download the IE plugin needed to use applications created with it.