Questions about business rule implementations #3393
Unanswered
Chicagoan2016
asked this question in
Questions
Replies: 1 comment
-
As C# has evolved over the years I think people's views on how to initialize the properties of a new instance have changed, and I'm not sure there's 100% agreement. I've always liked using a constructor with parameters to help self-document what is required to initialize a new instance. However, I also see the value in some of the "newer" syntax where properties are set directly, especially if there are a lot of properties that may or may not be set as an instance is created. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
While working on #3391
I noticed a couple of things in the example code (RuleTutorial) specifically Range.cs in AddOnPropertyRules.
But in Range.cs, we are directly accessing the Min and Max
I have always used private.
The link is not working, here is the code
Beta Was this translation helpful? Give feedback.
All reactions