+2008-09-09 Atsushi Enomoto <atsushi@ximian.com>
+ Jb Evain <jbevain@novell.com>
+
+ * net_2_1_raw_System.Runtime.Serialization.dll.sources: new sources
+ file for the SL2 profile.
+ * Makefile: add support for SL2 profile.
+
2008-03-31 Igor Zelmanovich <igorz@mainsoft.com>
* Makefile : add reference to System.Data.dll,
LIBRARY = System.Runtime.Serialization.dll
LIB_MCS_FLAGS = \
- /d:NET_3_0 \
/nowarn:168,169,219,414 \
/r:System.dll \
/r:System.Xml.dll \
- /r:System.Data.dll \
- /r:System.Configuration.dll \
- $(RESOURCE_FILES:%=/resource:%)
+ $(RESOURCE_FILES:%=/resource:%)
+
+ifneq (2.1, $(FRAMEWORK_VERSION))
+LIB_MCS_FLAGS += /d:NET_3_0 /r:System.Data.dll /r:System.Configuration.dll
+endif
TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) /r:System.ServiceModel.dll
+2008-09-09 Atsushi Enomoto <atsushi@ximian.com>
+ Jb Evain <jbevain@novell.com>
+
+ * IDataContractSurrogater.cs, SerializationMap.cs:
+ add support to build on the net_2_1 profile.
+
2008-06-19 Noam Lampert <noaml@mainsoft.com>
* KnownTypeCollection.cs: Support anyUri type
void GetKnownCustomDataTypes (Collection<Type> customDataTypes);
object GetObjectToSerialize (object obj, Type targetType);
-
+#if !NET_2_1
Type GetReferencedTypeOnImport (string typeName,
string typeNamespace, object customData);
CodeTypeDeclaration ProcessImportedType (
CodeTypeDeclaration typeDeclaration,
CodeCompileUnit compileUnit);
-
+#endif
}
}
#endif
public readonly Type RuntimeType;
public readonly QName XmlName;
public List<DataMemberInfo> Members;
+#if !NET_2_1
XmlSchemaSet schema_set;
+#endif
//FIXME FIXME
Dictionary<Type, QName> qname_table = new Dictionary<Type, QName> ();
return (Type.GetTypeCode (type) != TypeCode.Object || type == typeof (object));
}
+#if !NET_2_1
/* Returns the XmlSchemaType AND adds it to @schemas */
public virtual XmlSchemaType GetSchemaType (XmlSchemaSet schemas, Dictionary<QName, XmlSchemaType> generated_schema_types)
{
imp.Namespace = ns;
schema.Includes.Add (imp);
}
+#endif
//Returns list of data members for this type ONLY
public virtual List<DataMemberInfo> GetMembers ()
throw new NotImplementedException (String.Format ("Implement me for {0}", this));
}
+#if !NET_2_1
protected XmlSchemaElement GetSchemaElement (QName qname, XmlSchemaType schemaType)
{
XmlSchemaElement schemaElement = new XmlSchemaElement ();
return schema;
}
+#endif
//FIXME: redundant?
protected XmlQualifiedName GetQualifiedName (Type type)
throw new NotImplementedException ();
}
+#if !NET_2_1
public override XmlSchemaType GetSchemaType (XmlSchemaSet schemas, Dictionary<QName, XmlSchemaType> generated_schema_types)
{
if (generated_schema_types.ContainsKey (XmlName))
return complex_type;
}
+#endif
}
internal class SharedTypeMap : SerializationMap
return (EnumMemberAttribute) atts [0];
}
+#if !NET_2_1
public override XmlSchemaType GetSchemaType (XmlSchemaSet schemas, Dictionary<QName, XmlSchemaType> generated_schema_types)
{
if (generated_schema_types.ContainsKey (XmlName))
return simpleType;
}
+#endif
public override void Serialize (object graph,
XmlFormatterSerializer serializer)
--- /dev/null
+2008-09-09 Atsushi Enomoto <atsushi@ximian.com>
+ Jb Evain <jbevain@novell.com>
+
+ * XmlSchema.cs: add helper internal class.
--- /dev/null
+//
+// System.Xml.Schema/XmlSchema.cs
+//
+// Author:
+// Atsushi Enomoto <atsushi@ximian.com>
+//
+// Copyright (C) 2008 Novell, Inc. http://www.novell.com
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+// This is a dummy class that just holds constants
+
+#if NET_2_1
+
+namespace System.Xml.Schema
+{
+ internal class XmlSchema
+ {
+ public const string Namespace = "http://www.w3.org/2001/XMLSchema";
+ public const string InstanceNamespace = "http://www.w3.org/2001/XMLSchema-instance";
+ }
+}
+#endif
+2008-09-09 Atsushi Enomoto <atsushi@ximian.com>
+ Jb Evain <jbevain@novell.com>
+
+ * XmlBinaryDictionaryReader.cs, XmlSimpleDictionaryReader.cs:
+ add support to build on the net_2_1 profile.
+
2008-04-10 Eyal Alaluf <eyala@mainsoft.com>
* XmlBinaryDictionaryWriter.cs: WriteXmlnsAttribute generates a prefix
get { return state == ReadState.EndOfFile || state == ReadState.Error; }
}
+#if !NET_2_1
public override bool HasValue {
get { return current.Value.Length > 0; }
}
+#endif
public override bool IsEmptyElement {
get { return false; }
return false;
}
+#if !NET_2_1
public override bool ReadAttributeValue ()
{
if (current_attr < 0)
}
return false;
}
+#endif
public override bool Read ()
{
get { return reader.Prefix; }
}
+#if !NET_2_1
public override bool HasValue {
get { return reader.HasValue; }
}
+#endif
public override string Value {
get { return reader.Value; }
{
reader.ResolveEntity ();
}
-
+#if !NET_2_1
public override bool ReadAttributeValue ()
{
return reader.ReadAttributeValue ();
}
-
+#endif
#endregion
}
}
--- /dev/null
+../../build/common/Consts.cs
+../../build/common/Locale.cs
+../../build/common/MonoTODOAttribute.cs
+Assembly/AssemblyInfo.cs
+System.Runtime.Serialization/CollectionDataContractAttribute.cs
+System.Runtime.Serialization/ContractNamespaceAttribute.cs
+System.Runtime.Serialization/DataContractAttribute.cs
+System.Runtime.Serialization/DataContractSerializer.cs
+System.Runtime.Serialization/DataMemberAttribute.cs
+System.Runtime.Serialization/EnumMemberAttribute.cs
+System.Runtime.Serialization/ExportOptions.cs
+System.Runtime.Serialization/ExtensionDataObject.cs
+System.Runtime.Serialization/IDataContractSurrogate.cs
+System.Runtime.Serialization/IExtensibleDataObject.cs
+System.Runtime.Serialization/InvalidDataContractException.cs
+System.Runtime.Serialization/KnownTypeAttribute.cs
+System.Runtime.Serialization/KnownTypeCollection.cs
+System.Runtime.Serialization/NetDataContractSerializer.cs
+System.Runtime.Serialization/SerializationMap.cs
+System.Runtime.Serialization/XmlFormatterDeserializer.cs
+System.Runtime.Serialization/XmlFormatterSerializer.cs
+System.Runtime.Serialization/XmlObjectSerializer.cs
+System.Xml/IStreamProvider.cs
+System.Xml/IXmlBinaryReaderInitializer.cs
+System.Xml/IXmlBinaryWriterInitializer.cs
+System.Xml/IXmlDictionary.cs
+System.Xml/IXmlMtomReaderInitializer.cs
+System.Xml/IXmlMtomWriterInitializer.cs
+System.Xml/IXmlUTF8ReaderInitializer.cs
+System.Xml/IXmlUTF8WriterInitializer.cs
+System.Xml/OnXmlDictionaryReaderClose.cs
+System.Xml/UniqueId.cs
+System.Xml/XmlBinaryDictionaryReader.cs
+System.Xml/XmlBinaryDictionaryWriter.cs
+System.Xml/XmlBinaryFormat.cs
+System.Xml/XmlBinaryReaderSession.cs
+System.Xml/XmlBinaryWriterSession.cs
+System.Xml/XmlC14NWriter.cs
+System.Xml/XmlCanonicalWriter.cs
+System.Xml/XmlDictionary.cs
+System.Xml/XmlDictionaryReader.cs
+System.Xml/XmlDictionaryReaderAutoGen.cs
+System.Xml/XmlDictionaryReaderQuotas.cs
+System.Xml/XmlDictionaryString.cs
+System.Xml/XmlDictionaryWriter.cs
+System.Xml/XmlDictionaryWriterAutoGen.cs
+System.Xml/XmlSimpleDictionaryReader.cs
+System.Xml/XmlSimpleDictionaryWriter.cs
+System.Xml.Schema/XmlSchema.cs