Replies: 1 comment 4 replies
-
Beta Was this translation helpful? Give feedback.
4 replies
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.
-
Summary
Add method cascades. Method cascades provide a syntactic sugar for situations where the object of a method invocation might otherwise have to be repeated.
Motivation
Make it easer to write fluent API.
With cascades, we will gain fluent API on the .NET base library.
Syntax
The use of
..
is to cascaded method invocation operation. The..
syntax invokes a method (field or property) but discards the result, and returns the original object instead.Beta Was this translation helpful? Give feedback.
All reactions