Method Chaining Is Cool!

  1. var jack = new Person().SetName(“Jack”)
  2.                                            .SetAge(30)
  3.                                            .SetCity(“NY”)
  4.                                            .Save();

Find out how it works here:
https://www.codeproject.com/articles/640997/fluent-interfaces-and-method-chaining-in-csharp


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *