Where is GetPropertyConvert

Where is GetPropertyConvert

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

sperber posted on Friday, April 20, 2012


I'm new to CSLA and am trying to play around with the GetPropertyConvert method and SmartDate.  The problem is that my program complains that GetPropertyConvert and SetPropertyConvert are undefined.  Sure enough, when I search the CSLA source code, the search comes up empty.

Where are these methods?

I'm using CSLA 3.5 (and CAN'T upgrade to another version)



JonnyBee replied on Friday, April 20, 2012

From the change log:

Pre-release 3.6.0-080626:


GetProperty/SetProperty/ReadProperty/LoadProperty (080626)

Change all <P, F> overloads to include the word ‘Convert’. For example, GetProperty<P,F> is now GetPropertyConvert<P,F>. This avoids an ambiguity scenario and allows the compiler to do better type inference.

This is a breaking change for any code using the previous <P,F> overloads.

sperber replied on Friday, April 20, 2012


Just confirmed our company is using 3.6, not 3.5 as I was told.

Copyright (c) Marimer LLC