Self-assignment instead of delegate creation #111031
Labels
area-System.Security
help wanted
[up-for-grabs] Good issue for external contributors
Priority:3
Work that is nice to have
Milestone
runtime/src/libraries/System.Security.Claims/src/System/Security/Claims/ClaimsPrincipal.cs
Line 31 in 1303e42
Here it is basically self-assignment:
ClaimsPrincipalSelector
property read the same field it is assigned to. As resultClaimsPrincipalSelector
property ends up beingnull
: https://sharplab.io/#v2:C4LgTgrgdgNAJiA1AHwAIEYB0GCcAKDTAZQFMBjCMAS2AE9MBhAGwEMqBbAZ0dY84AVqUMlQAOLJjzZdBVYWImkm5YAHswAAiqcNUCEyYBKANxA=Looks like it should be
SelectClaimsPrincipal
(to create delegate from method) instead ofClaimsPrincipalSelector
.The text was updated successfully, but these errors were encountered: