public static void Demo() { var pb = new PersonBuilder2(); Person2 person = pb .Lives.At("123 crystal palace") .In("London") .WithPostCode("SQW12C") .Works.At("Fabrikam") .AsA("Engineer") .Earning(12300); WriteLine(person); }
public PersonJobBuilder(Person2 person) { _person = person; }
public PersonAddressBuilder(Person2 person) { _person = person; }