[Proposal] fluent interface version of List<T>.ForEach(Action<T>) #4943
Unanswered
NagayamaToshiaki
asked this question in
Language Ideas
Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It should be neat if we can chain the array definition and ForEach iteration like:
var list = db.Foo.Where(f =>f.bar = "bar" ).ForEach(f => f.baz += 10)
I knew "Modifying the underlying collection in the body of the Action delegate is not supported" but our team actually using modification by ForEach method.
Beta Was this translation helpful? Give feedback.
All reactions