2023-08-07 informational What comes after quadrillion? After quadrillion comes quintillion, with 18 zeroes. Discover the full list of large number names from million all the way to centillion.
2023-08-06 csharp C# 12 – Alias any type The using alias directive has been relaxed in C# 12 to allow aliasing any sort of type, not just named types. This means that you can now alias tuples, pointers, array types, generic types, etc. So instead of using the full structural form of a tuple, you can now alias it with a short descriptive…
2023-08-06 dotnetdotnet-8 .NET 8 JsonNamingPolicy: SnakeCaseLower and KebabCaseLower (System.Text.Json) Use the new .NET 8 `JsonNamingPolicy.SnakeCaseLower` (and SnakeCaseUpper, KebabCaseLower, KebabCaseUpper) to serialize snake_case / kebab-case JSON via System.Text.Json — no custom converter needed.
2023-08-05 csharp Is there a C# With…End With statement equivalent? The With…End With statement in VB allows you to execute a series of statements that repeatedly refer to a single object. Thus the statements can use a simplified syntax for accessing members of the object. For example: Is there a C# syntax equivalent? No. There is not. The closest thing to it would be the…
2023-07-30 csharp C# 12 – Primary constructors Starting from C# 12, it is possible to define a primary constructor within classes and structs. The parameters are placed in parentheses right after the type name. The parameters of a primary constructor have a broad scope. They can be utilized to initialize properties or fields, serve as variables in methods or local functions, and…
2023-06-14 dotnet dotnet new api -aot: ‘-aot’ is not a valid option Fix the '-aot is not a valid option' error by using the correct double-hyphen syntax: dotnet new api --aot.
2023-06-13 microsoft-graph The type or namespace name ‘QueryOption’ could not be found Starting with Microsoft Graph .NET SDK 5.0, the QueryOption class is no longer used. Instead, query options are set using the requestConfiguration modifier. Let’s take a simple example: If you must use QueryOptions, your only alternative is to downgrade the Microsoft Graph package to a 4.x version.
2023-06-12 dotnet-script How to pass arguments to a dotnet script Learn how to pass arguments to a dotnet script using the -- separator and access them via the Args collection.
2023-06-11 aspnetentity-framework How to fix: dotnet ef not found (dotnet-ef does not exist) Fix the 'dotnet-ef does not exist' / 'dotnet ef command not found' error by installing the EF Core CLI as a global or local .NET tool.
2023-06-11 csharpdotnet How to start programming with C# A beginner's guide to getting started with C# programming, from setting up Visual Studio to writing your first program and finding learning resources.