InfoQ Homepage C# 8 Content on InfoQ
Articles
RSS Feed-
Preparing Entity Framework Core for Static Analysis and Nullable Reference Types
In this article we walk through the process of updating an EF Core 3.1 based DAL to adhere to modern best practices such as TreatWarningsAsErrors, FxCopAnalyzers, and C# 8’s nullable reference types.
-
Using C# 8 and Nullable Reference Types in .NET Framework
While parts of C# 8 will never be supported in .NET Framework, the Nullable Reference Types can be turned on if you know the tricks.
-
Interview with Scott Hunter on .NET Core 3.0
Chris Woodruff talks to director of program management for the .NET platform, Scott Hunter, about what developers can expect from .NET Core 3.
-
Adapting Projects to Use C# 8 and Nullable Reference Types
This report is a case study on upgrading a C# 7 class library to C# 8 with nullable reference types. The project used in this case study is a collection of MVVM style base classes, reflection code, and various utility functions. It was chosen because it is reasonably small and has a good mix of idiomatic and unusual C# patterns.
-
Async Streams in C# 8
Asynchronous programming is an important technique for many modern apps to improve responsiveness. C# 8 debuts Async Streams, which allows an async method return multiple values. Bassam Alugili provides an informative introduction to this new technique.
-
C# 8 Ranges and Recursive Patterns
C#8 adds Ranges and Recursive Patterns. Ranges define a sequence of data while the use of Recursive Patterns provides the ability to deconstruct objects that match a given pattern. This expands on the basic pattern matching that debuted in C#7.
-
Default Interface Methods in C# 8
Default interface methods are included in a new feature proposal for C# 8, which will allow developers to use the traits programming technique. Based on an existing language feature found in Java, traits are an OOP technology that promotes the reuse of methods between unrelated classes.