#fix
https://proglib.io/w/c8e37e70
What changed in .net 5 that makes it not throw when changing dictionary values in foreach
https://proglib.io/w/c8e37e70
Stack Overflow
What changed in .net 5 that makes it not throw when changing dictionary values in foreach
In .NET<5 and .NET Core 3.1 the following code
var d = new Dictionary<string, int> { { "a", 0 }, { "b", 0 }, { "c", 0 } };
foreach (var k in d.Keys)
{
d[k...
var d = new Dictionary<string, int> { { "a", 0 }, { "b", 0 }, { "c", 0 } };
foreach (var k in d.Keys)
{
d[k...
#fix
https://proglib.io/w/8bbbb82e
Difference in lambda expressions between full .NET framework and .NET Core
https://proglib.io/w/8bbbb82e
Stack Overflow
Difference in lambda expressions between full .NET framework and .NET Core
Is there a difference in the declaration of lambda expressions between the .NET Framework and .NET Core?
The following expressions compiles in .NET Core:
var lastShift = timeline.Appointments
...
The following expressions compiles in .NET Core:
var lastShift = timeline.Appointments
...
#fix
https://proglib.io/w/91625f78
C# "anyString".Contains('0', StringComparison.InvariantCulture) returns true in .NET5 but false in older versions
https://proglib.io/w/91625f78
Stack Overflow
C# "anyString".Contains('\0', StringComparison.InvariantCulture) returns true in .NET5 but false in older versions
I encountered an incompatible problem while I was trying to upgrade my projects from .NET core 3.1 to the latest .NET 5.
My original code has a validation logic to check invalid file name character...
My original code has a validation logic to check invalid file name character...