Closed TonySkorik closed 1 year ago
Thanks for an issue!
I'll implement it in a https://github.com/DeagleGross/SharpCoachPlugin/issues/6 (supporting not only classes, but collections also), but the good thing you've suggested is providing a special setting using plugin-settings-page.
When mapping the collections of object this plugin generates the
Select
LINQ clause.If the LINQ target is null -
System.ArgumentNullException
gets thrown at the run time.It might be a good idea to call all the generated LINQ methods conditionally (either through conditional access operator or via more verbose ternary operator) or add a corresponding setting - whether the extension should generate collection mappings using conditional access.