* OdbcParameterTest.cs: Fixed compilation on 1.0 profile.
[mono.git] / mcs / class / System.Data / System.Data.SqlTypes / SqlXml.cs
index 61f28efbdd766c63f9d65e7281c877f7532965d6..0a666adcf352310215c272e415f2ad9eaa66ee8e 100644 (file)
 //
 
 using System;
+using System.IO;
+using System.Xml;
+using System.Xml.Schema;
 using System.Globalization;
 using System.Threading;
+using System.Xml.Serialization;
 
 #if NET_2_0
 
 namespace System.Data.SqlTypes
 {
-       [MonoTODO]
-       public class SqlXml 
+       [SerializableAttribute]
+       [XmlSchemaProvider ("GetXsdType")]
+       public sealed class SqlXml : INullable, IXmlSerializable
        {
-               public SqlXml()
+               bool notNull;
+
+               [MonoTODO]
+               public SqlXml ()
+               {
+                       notNull = false;
+               }
+
+               [MonoTODO]
+               public SqlXml (Stream value)
+               {
+                       if (value == null) {
+                               notNull = false;
+                       } else {
+                               notNull = true;
+                       }
+               }
+
+               [MonoTODO]
+               public SqlXml (XmlReader value)
+               {
+                       if (value == null) {
+                               notNull = false;
+                       } else {
+                               notNull = true;
+                       }
+               }
+
+               public bool IsNull {
+                       get { return !notNull; }
+               }
+
+               public static SqlXml Null {
+                       get {
+                               return new SqlXml ();
+                       }
+               }
+
+               public static XmlQualifiedName GetXsdType (XmlSchemaSet schemaSet)
+               {
+                       XmlQualifiedName qualifiedName = new XmlQualifiedName ("anyType", "http://www.w3.org/2001/XMLSchema");
+                       return qualifiedName;
+               }
+
+               [MonoNotSupported("")]
+               public XmlReader CreateReader ()
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               XmlSchema IXmlSerializable.GetSchema ()
+               {
+                       throw new NotImplementedException ();
+               }
+               
+               [MonoTODO]
+               void IXmlSerializable.ReadXml (XmlReader r)
+               {
+                       throw new NotImplementedException ();
+               }
+               
+               [MonoTODO]
+               void IXmlSerializable.WriteXml (XmlWriter writer) 
                {
+                       throw new NotImplementedException ();
                }
        }
 }