❔ ✅ How to create builder?
I'd like to create builder which should look smth like that:
I know how to create builder but I don't understand how to create "groups".
All objects inside
.StartGroup()... .EndGroup()
should have group name
How to do it?6 Replies
StartGroup
could returns a new GroupBuilder
object which has the name of the group in it. The group object also has a reference to the original SchemaBuilder
which is returned when calling EndGroup
.
didn't think about second builder
may I ask a question
is it ok to put GroupBuilder inside SchemaBuilder?
As a nested class? sure ig
thanks for helping!
I would tackle this with another approach. Instead of using two builders and a list to store them, I'd just use one builder and a dictionary/map that has the keys set to the group name.
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.