C#C
C#3y ago
10 replies
dotnut

❔ comples object creation

Hi people,
Can someone give me some ideas on how to handle a complex object creation, meaning some of properties are objects which themselves and are pretty tricky to create too, one of which even requires data from an I/O operation for which I consider injecting a service for.

If I instantiate the properties in the constructor the constructor itself becomes quite huge.

I tried the builder pattern but not too fond of it.
Was this page helpful?