CSLA 4 PropertyInfo declaration best pratices

CSLA 4 PropertyInfo declaration best pratices

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


lloydmcd posted on Tuesday, September 21, 2010

I know that it's now recommended to declare PropertyInfo as public, but I noticed that the snippets have them read only in addition to public.  This is a change from the 3.8.x snippets.  Is the correct way is to declare PropertyInfo objects public and read only or just public?

p.s. The sample Project Tracker app hasn't been updated to reflect the current best pratice for declaring PropertyInfo classes. 

I know the CSLA development effort is a huge undertaking and I'm very thankful for the hard work that has gone into its design for the latest enhancements. 

 

RockfordLhotka replied on Tuesday, September 21, 2010

The newest snippets are correct - public and readonly are recommended.

lloydmcd replied on Tuesday, September 21, 2010

Thanks Rocky!

Copyright (c) Marimer LLC