InputProperties vs. AffectedProperties Inconsistency

InputProperties vs. AffectedProperties Inconsistency

Old forum URL: forums.lhotka.net/forums/t/10784.aspx


ajj3085 posted on Tuesday, October 18, 2011

I'm just curious, why is InputPropertys set by newing up a list and setting the reference directly while for AffectedProperties you have to Add or AddRange?

JonnyBee replied on Wednesday, October 19, 2011

It's legacy from Csla 4.0 in order to keep the memory as optimized as possible.
Believing that many rules would use OutputProperties and few would use InputProperties.

If I could - I'd change these to be Lazy properties but that would break existing code.

 

Copyright (c) Marimer LLC