This is because you do absolute nothing in the setter, and if you do IsValid = true
then you’re assigning the thing to itself, which naturally goes in circles. You should remove the setter since the getter relies on peripheral information and isn’t a standalone value.
For the condition to be true, Branches
needs to have some items.
0
solved C# Setter does not assign