Json.NET Silverlight cannot handle internal type?

Mar 26, 2010 at 8:00 AM

I cannot deserialize a internal class from json string.

But it works in other .NET versions.

And when I change modified this class as public (both this class and its properties), it works.

I know the security model of silverlight made it a MethodAccessException.

Is there any way I can deserialize classes not public?

Mar 26, 2010 at 8:34 AM

Solved!

[assembly: InternalsVisibleTo("Newtonsoft.Json.Silverlight")]