Chaining methods

As many of the string methods return a string, it is entirely possible to chain methods together. For example, each of the following methods return a string, so another method can be added to the end:

'    ONe*?   '.Trim().TrimEnd('?*').ToLower().Replace('o', 'O') 

This ability to chain methods is not in any way unique to strings.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.242.235