using System.Xml;
using System.Xml.Schema;
using System.Text;
-#if !TARGET_JVM && !NET_2_1
+#if !NET_2_1
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 TARGET_JVM || NET_2_1
+#if NET_2_1
string db = null;
string th = null;
generationThreshold = -1;
get { return typeMapping; }
}
-#if NET_2_0
[MonoTODO]
public XmlSerializer (Type type,
Evidence evidence)
{
}
-#endif
#endregion // Constructors
if (namespaces == null || namespaces.Count == 0) {
namespaces = new XmlSerializerNamespaces ();
-#if NET_2_0
namespaces.Add ("xsi", XmlSchema.InstanceNamespace);
namespaces.Add ("xsd", XmlSchema.Namespace);
-#else
- namespaces.Add ("xsd", XmlSchema.Namespace);
- namespaces.Add ("xsi", XmlSchema.InstanceNamespace);
-#endif
}
xsWriter.Initialize (xmlWriter, namespaces);
throw new NotImplementedException ();
}
-#if !TARGET_JVM && !MOBILE
+#if !MOBILE
public static Assembly GenerateSerializer (Type[] types, XmlMapping[] mappings)
{
return GenerateSerializer (types, mappings, null);
return new XmlSerializationReaderInterpreter (typeMapping);
}
-#if TARGET_JVM || NET_2_1
+#if NET_2_1
void CheckGeneratedTypes (XmlMapping typeMapping)
{
throw new NotImplementedException();
}
#endif
-#if NET_2_0
GenerationBatch LoadFromSatelliteAssembly (GenerationBatch batch)
{
return batch;
}
-#else
- GenerationBatch LoadFromSatelliteAssembly (GenerationBatch batch)
- {
- return batch;
- }
-#endif
#endregion // Methods
}