▲ | arethuza 5 days ago | |||||||
If you really need all of that I think I'd go with a separate object holding all of the options: options = new SerializeOptions(); options.PrettyPrint = true; options.Flag2 = "red" options.Flag3 = 27; serialize(someObject, options) | ||||||||
▲ | vanviegen 5 days ago | parent [-] | |||||||
So 1 line of C/C++ becomes 5 lines of Java/C#? That sounds about right! :-) Though I'm sure we can get to 30 if we squeeze in an abstract factory or two! | ||||||||
|