2023-09-06 csharpdotnetdotnet-8 .NET 8 – Memory<byte> is serialized as base64 Starting with .NET 8, both Memory<byte> and ReadOnlyMemory<byte> are serialized as Base64 strings, while other types like Memory<int> remain JSON arrays.
2023-09-05 csharpdotnetdotnet-8 .NET 8 – Include non-public members in JSON serialization Learn how to include private, protected, and internal properties in JSON serialization in .NET 8 using the JsonInclude attribute.
2023-09-04 dotnetdotnet-8 dotnet workload clean Use the `dotnet workload clean` command to remove leftover .NET workload packs after an SDK or Visual Studio update — when to use it, what it removes, and gotchas.
2023-09-03 dotnetdotnet-8 .NET 8 – Deserialize into read-only properties Learn how to deserialize JSON into read-only properties without a setter in .NET 8 using JsonObjectCreationHandling or JsonSerializerOptions.
2023-09-02 dotnetdotnet-8 .NET 8 – Handle missing members during JSON deserialization Learn how to throw exceptions for unmapped JSON properties during deserialization in .NET 8 using JsonUnmappedMemberHandling.
2023-09-01 sqlite SQLite-net – No parameterless constructor defined for this object on ExecuteQuery How to fix the 'no parameterless constructor defined' error in SQLite-net when using ExecuteQuery with primitive types like string or int.
2023-08-31 csharp C# 12 – Inline arrays Inline arrays enable you to create an array of fixed size in a struct type. Such a struct, with an inline buffer, should provide performance comparable to an unsafe fixed size buffer. Inline arrays are mostly to be used by the runtime team and some library authors to improve performance in certain scenarios. You likely…
2023-08-30 csharp C# 12 – Collection expressions C# 12 introduces a new simplified syntax for creating arrays. It looks like this: It’s important to note that the array type needs to be specified explicitly, so you cannot use var for declaring the variable. Similarly, if you wanted to create a Span<int>, you can do: Multi-dimensional arrays The advantages of this terse syntax…
2023-08-29 dotnet-scriptdotnet How to install dotnet script dotnet script enables you to run C# scripts (.CSX) from the .NET CLI. The only requirement is to have .NET 6 or newer installed on your machine. You can use the following command to install dotnet-script globally: Then to execute a script file you simply call dotnet script <file_path> like in the example below: How…
2023-08-18 flutter Flutter – Fix The getter ‘accentColor’ isn’t defined for the class ‘ThemeData’ The most likely cause of this error is an update to Flutter (flutter upgrade) which led to some incompatibility with your existing code or your project's dependencies. The Theme.of(context).accentColor property has been deprecated since Flutter 1.17 and is entirely removed from the current version, thus the error you are seeing. What to use instead Or, if…