* FormatterServices.cs: patch from Jean Marc that fixes bug #42742.
svn path=/trunk/mcs/; revision=14473
+2003-05-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+ * FormatterServices.cs: patch from Jean Marc that fixes bug #42742.
+
2003-02-18 Lluis Sanchez Gual <lluis@ideary.com>
* ObjectManager.cs: Corrected a problem with arrays of structs. Elements where
if (type == null)
throw new ArgumentNullException ("type");
+ if (!type.IsSerializable) {
+ string msg = String.Format ("Type {0} in assembly {1} is not marked as serializable.",
+ type, type.Assembly.FullName);
+ throw new SerializationException (msg);
+ }
+
//FIXME: context?
ArrayList fields = new ArrayList ();
Type t = type;