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

Leave a Reply

Your email address will not be published.