#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...
#fix
https://proglib.io/w/eaef6555
Why does an interface's default implementation get called when two classes are in the inheritance chain, and the class in the middle is empty
https://proglib.io/w/eaef6555
Stack Overflow
Why does an interface's default implementation get called when two classes are in the inheritance chain, and the class in the middle…
Summary
I have found that inserting a class between an interface and another derived class results in the interface's default implementation being called rather than the derived implementation for ...
I have found that inserting a class between an interface and another derived class results in the interface's default implementation being called rather than the derived implementation for ...
#fix
https://proglib.io/w/c0a080dc
How to read the value from a Dictionary via .TryGetValue() if the value is a tuple?
https://proglib.io/w/c0a080dc
Stack Overflow
How to read the value from a Dictionary via .TryGetValue() if the value is a tuple?
I have a dictionary of type
Dictionary<int, (float, float)>
when trying to read the value from it I can't use this way
if (myDict.TryGetValue(1, out (float tupleItem1, float tupleItem2))) { ...
Dictionary<int, (float, float)>
when trying to read the value from it I can't use this way
if (myDict.TryGetValue(1, out (float tupleItem1, float tupleItem2))) { ...
#fix
https://proglib.io/w/4675745b
Why does the C# 'is' operator give a correct result when comparing two boolean values and should I use it?
https://proglib.io/w/4675745b
Stack Overflow
Why does the C# 'is' operator give a correct result when comparing two boolean values and should I use it?
Id noticed that this is operator produces the same results and even compiles the same (see this gist) as the == operator. Is this a correct usage of the is operator given that I can only see things
#fix
https://proglib.io/w/8e6aa034
JWT Authentication .Net core [Authorize] Attribute Ignored by Controller
.https://proglib.io/w/8e6aa034
Stack Overflow
JWT Authentication .Net core [Authorize] Attribute Ignored by Controller
I'm trying to implement JWT based authentication in my App that has an Angular 8 Frontend and .Net Core Backend. I have added
app.UseAuthentication();
app.UseAuthorization();
and
services.
app.UseAuthentication();
app.UseAuthorization();
and
services.