Is there a better way to set lots of required properties than sending as parameters in a Constructor
Posted
by TooFat
on Stack Overflow
See other posts from Stack Overflow
or by TooFat
Published on 2010-04-28T15:37:33Z
Indexed on
2010/04/28
15:43 UTC
Read the original article
Hit count: 211
c#
I have a class that in order to do it's job needs to have 8 different property values set. I want to make sure that all 8 properties are set before trying to execute a method. I currently have all the parameters passed in and set via the constructor. Is there a better way to do this?
© Stack Overflow or respective owner