I know what I am going to ask now may get a lot of fury but my brain is really locked!
I want to structure my methods so that I access them like this without using namespaces:
Code code = new Code();
code.Column.Rebar.GetMaximumSpacing();
code.Column.Rebar.GetMinimumSpacing();
code.Beam.Rebar.GetMinimumLength();
code.General.GetSomething();
In the code above, Beam and Column are not namespace but classes and properties of the Code.
These classes have private constructors and are only meaningful as properties of the Code.
In a nutshell, I want to group related methods and distribute them across classes in a project so that other users from other projects can easily find and use them.
Is it a bad design? What other options do I have?
Aucun commentaire:
Enregistrer un commentaire