boundless-monkey-2042
06/02/2021, 8:20 PMtall-librarian-49374
06/02/2021, 8:31 PMSelectMany
, I think.boundless-monkey-2042
06/02/2021, 8:34 PMtall-librarian-49374
06/02/2021, 8:40 PMboundless-monkey-2042
06/02/2021, 8:40 PMtall-librarian-49374
06/02/2021, 8:53 PMworried-city-86458
06/02/2021, 11:20 PMSelectMany
?boundless-monkey-2042
06/03/2021, 6:54 PMworried-city-86458
06/03/2021, 7:03 PMIEnumerable<IEnumerable<SecurityRuleArgs>>
presumably from inner MapSecurityRules
, so to flatten use:
SecurityRules = _rules.SelectMany(rule => MapSecurityRules(rule)).ToArray() // or ToImmutableArray()
then if I read that correctly you should be able to use method group syntax:
SecurityRules = _rules.SelectMany(MapSecurityRules).ToArray() // or ToImmutableArray()
IEnumerable<IEnumerable<SecurityRuleArgs>>
to IEnumerable<SecurityRuleArgs>
boundless-monkey-2042
06/10/2021, 4:48 AM