mail-archives/monodroid/2011-December/007592.html

107 строки
3.4 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [mono-android] Non-serializable types in Monodroid?
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:monodroid%40lists.ximian.com?Subject=%5Bmono-android%5D%20Non-serializable%20types%20in%20Monodroid%3F&In-Reply-To=1322496552618-5029261.post%40n5.nabble.com">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="007589.html">
<LINK REL="Next" HREF="007595.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[mono-android] Non-serializable types in Monodroid?</H1>
<B>DocM</B>
<A HREF="mailto:monodroid%40lists.ximian.com?Subject=%5Bmono-android%5D%20Non-serializable%20types%20in%20Monodroid%3F&In-Reply-To=1322496552618-5029261.post%40n5.nabble.com"
TITLE="[mono-android] Non-serializable types in Monodroid?">derek at fieldmetrix.com
</A><BR>
<I>Tue Dec 6 11:30:20 EST 2011</I>
<P><UL>
<LI>Previous message: <A HREF="007589.html">[mono-android] The minimum Android version is higher than this device supports.
</A></li>
<LI>Next message: <A HREF="007595.html">[mono-android] Constructor became protected in 4.0 : Android.App.AlertDialog.AlertDialog(System.IntPtr, Android.Runtime.JniHandleOwnership)
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#7592">[ date ]</a>
<a href="thread.html#7592">[ thread ]</a>
<a href="subject.html#7592">[ subject ]</a>
<a href="author.html#7592">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Paul,
If you haven't already solved this try adding the missing constructor to the
common class:
[Serializable]
public class common
{
public int p, a, w, pa;
public double bodyWeight, tempBody, tempSurround;
public double[,] correctionData = new double[3, 20];
public double[,] iterations = new double[3, 20];
public double c, b, cas;
public string s;
// add missing constructor
public common()
{}
}
I haven't found any issues with the serialization yet :)
--
View this message in context: <A HREF="http://mono-for-android.1047100.n5.nabble.com/Non-serializable-types-in-Monodroid-tp5029261p5052635.html">http://mono-for-android.1047100.n5.nabble.com/Non-serializable-types-in-Monodroid-tp5029261p5052635.html</A>
Sent from the Mono for Android mailing list archive at Nabble.com.
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="007589.html">[mono-android] The minimum Android version is higher than this device supports.
</A></li>
<LI>Next message: <A HREF="007595.html">[mono-android] Constructor became protected in 4.0 : Android.App.AlertDialog.AlertDialog(System.IntPtr, Android.Runtime.JniHandleOwnership)
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#7592">[ date ]</a>
<a href="thread.html#7592">[ thread ]</a>
<a href="subject.html#7592">[ subject ]</a>
<a href="author.html#7592">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/monodroid">More information about the Monodroid
mailing list</a><br>
</body></html>