Reducing number of very long constructor overloads with just a few different parameters
问题 I made custom interface system which uses basic UI controls like button, label, etc. Some controls have many options, so they use long constructors, and they only differ in one or two parameters. And this is work in progress, so I change optional parameters a lot, and it takes quite some time to apply changes to all constructors. public Button(string Text, Rectangle Rect, Texture2D Texture, bool moreStuff) public Button(string Text, Point Position, Texture2D Texture, bool moreStuff) public