Sorry, C # doesn't have this. The @Jakub object initializer may offer an alternative or:
If you create Zeta yourself, you can use the smooth interface . This will allow you to:
Alpha.Beta.Gama.Eta.Zeta .SetPropertyA(A) .SetPropertyB(B) .SetPropertyC(C);
Which comes close to what you want, due to a lot of work elsewhere. And remember that a free interface is not always the best design choice.
source share