using System.Xml;
using System.Xml.Schema;
using System.Text;
-#if !NET_2_1
+#if !MOBILE
using System.CodeDom;
using System.CodeDom.Compiler;
using Microsoft.CSharp;
// debugging pourposes by adding the "nofallback" option.
// For example: MONO_XMLSERIALIZER_THS=0,nofallback
-#if NET_2_1
+#if MOBILE
string db = null;
string th = null;
generationThreshold = -1;
}
#endif
deleteTempFiles = (db == null || db == "no");
-#if !NET_2_1 && CONFIGURATION_DEP
+#if !MOBILE && CONFIGURATION_DEP
// DiagnosticsSection
ConfigurationSection table = (ConfigurationSection) ConfigurationSettings.GetConfig("system.diagnostics");
var bf = BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance;
{
}
+ public XmlSerializer (Type type, XmlAttributeOverrides overrides, Type[] extraTypes, XmlRootAttribute root, string defaultNamespace, string location)
+ : this (type, overrides, extraTypes, root, defaultNamespace, location, null)
+ {
+ }
+
public XmlSerializer (Type type, XmlAttributeOverrides overrides)
: this (type, overrides, null, null, null)
{
}
}
-#if !NET_2_1
+#if !MOBILE
if (!typeMapping.Source.CanBeGenerated || generationThreshold == -1)
return new XmlSerializationWriterInterpreter (typeMapping);
XmlSerializationReader CreateReader (XmlMapping typeMapping)
{
-#if !NET_2_1
+#if !MOBILE
XmlSerializationReader reader;
lock (this) {
return new XmlSerializationReaderInterpreter (typeMapping);
}
-#if NET_2_1
+#if MOBILE
void CheckGeneratedTypes (XmlMapping typeMapping)
{
throw new NotImplementedException();