private PropertyInfo and Silverlight 5

private PropertyInfo and Silverlight 5

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


tiago posted on Saturday, February 09, 2013

On a Csla 4.3.13 project that targets Silverlight 5 I replaced all

public static readonly PropertyInfo

by

private static readonly PropertyInfo

and guess what? It works as it did before.

I know this shouldn't work under Silverlight 3 and 4. Am I correct to conclude that this is due to the reflection changes in Silverlight 5?

RockfordLhotka replied on Saturday, February 09, 2013

Yes, Silverlight 5 added the ability to use private reflection. As a result, a ton of the work we did to support SL2/3/4 would no longer be necessary today :)

tiago replied on Sunday, February 10, 2013

RockfordLhotka

Yes, Silverlight 5 added the ability to use private reflection. As a result, a ton of the work we did to support SL2/3/4 would no longer be necessary today :)

 

<SarcasticMode on>

That's what I like about Microsoft: stability and persistent ideas..

<SarcasticMode off>

Copyright (c) Marimer LLC