TypeFormatter.Read, TypeFormatter.Write from /main/5
svn path=/trunk/mcs/; revision=55246
+2006-01-09 Vladimir Krasnov <vladimirk@mainsoft.com>
+
+ * ObjectStateFormatter.cs: Merged TARGET_JVM parts in
+ TypeFormatter.Read, TypeFormatter.Write from /main/5
+
2006-01-09 Konstantin Triger <kostat@mainsoft.com>
* Page.cs: make ProcessRequest virtual under TARGET_JVM.
} else {
w.Write (PrimaryId);
w.Write (((Type) o).FullName);
-
+#if !TRAGET_JVM
// We should cache the name of the assembly
w.Write (((Type) o).Assembly.FullName);
+#endif
}
}
{
if (token == PrimaryId) {
string type = r.ReadString ();
+#if !TARGET_JVM
string assembly = r.ReadString ();
-
Type t = Assembly.Load (assembly).GetType (type);
+#else
+ Type t = Type.GetType(type);
+#endif
ctx.CacheItem (t);
return t;
} else {