Take advantage of read-only generic interfaces such as IReadOnlyList, IReadOnlyDictionary, and IReadOnlyCollection to prevent modifications to collections in your .NET Core applications. A collection ...
Take advantage of the stream classes in .NET 7 for faster reads and writes of the data in your .NET applications. A stream is an abstraction over a sequence of bytes. You can think of it as a ...
The use pattern matching refactoring introduces C# 9 pattern combinators Of course, helping developers learn about new things while actually working in Visual Studio 2019 was greatly enhanced with the ...
string[] test = new string[]{"Hello Mr. "+get_name(),Random.Next(10)+" is your lucky number"}; string[] names = {"Jim","Bob","Alice"}; string get_name() { int t; t ...
Test projects give you a way to exercise your code to see if it works but they're also part of your project's "permanent record." If all you want to do is try something out with some throwaway code, C ...