sedanwer


Comments:

C#, Generic factory with support for private constructors

posted by sedanwersedanwer(216) 4 months, 25 days ago 0

Not my call, I just provided a solution, but right of my head....

E.g in a deserialization/mapping scenario. Normal consumers should not be "allowed" to use a certain constructor, whilst your tooling that perhaps create an instance and the populate certain members on it.

//Daniel

Reply