Closed GoogleCodeExporter closed 9 years ago
That is odd; I will investigate.
Original comment by marc.gravell
on 17 Jun 2011 at 5:09
I had the same issue. Below is the patch I used to fix it:
Index: Serializers/TypeSerializer.cs
===================================================================
--- Serializers/TypeSerializer.cs (rÚvision 416)
+++ Serializers/TypeSerializer.cs (copie de travail)
@@ -236,7 +236,7 @@
{
if (!hasConstructor) TypeModel.ThrowCannotCreateInstance(constructType);
obj = Activator.CreateInstance(constructType
-#if !CF
+#if !CF && !SILVERLIGHT
, true
#endif
);
As you can see, asking to include non public constructors for Silverlight build
is the culprit and the fix is act as with CF build.
Original comment by mark.kha...@gmail.com
on 20 Jun 2011 at 8:12
Mark's patch is applied r418
Original comment by marc.gravell
on 21 Jun 2011 at 5:15
Original issue reported on code.google.com by
lexw...@yandex.ru
on 16 Jun 2011 at 11:17