Short-circuiting in Linq-Where
问题 I have a problem in a Linq-Where method. I get a NullReferenceException in a where clause, which should not happen because C# should use short-circuiting and the second operations hould not be executed: If Item is null, Item.State == ... should not be called, because the condition is already true (short-circuiting). But it seems, that short-circuiting does not working in this case. Does anyone else had and solved this problem? Thank you! Edit : In the end, the connectionList should not