You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Even if the argument is initialized with an empty collection (and the constructor does not do any shenanigans either), this kind of code relies heavily on implementation details and is unintuitive to understand.
The text was updated successfully, but these errors were encountered:
Nesting a collection initializer inside an object initializer can have unexpected side effects or lead to crashes:
SharpLab
SharpLab
Even if the argument is initialized with an empty collection (and the constructor does not do any shenanigans either), this kind of code relies heavily on implementation details and is unintuitive to understand.
The text was updated successfully, but these errors were encountered: