* OdbcParameterTest.cs: Fixed compilation on 1.0 profile.
[mono.git] / mcs / class / System.Data / System.Data.SqlTypes / SqlXml.cs
index fe7c9154d41c84687346dc4811aa513c92d8d36c..0a666adcf352310215c272e415f2ad9eaa66ee8e 100644 (file)
@@ -39,7 +39,8 @@ using System.Xml.Serialization;
 namespace System.Data.SqlTypes
 {
        [SerializableAttribute]
-       public class SqlXml : INullable, IXmlSerializable
+       [XmlSchemaProvider ("GetXsdType")]
+       public sealed class SqlXml : INullable, IXmlSerializable
        {
                bool notNull;
 
@@ -69,15 +70,27 @@ namespace System.Data.SqlTypes
                        }
                }
 
-                public bool IsNull {
-                        get { return !notNull; }
-                }
+               public bool IsNull {
+                       get { return !notNull; }
+               }
 
-                public static SqlXml Null {
-                        get {
+               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 ()
@@ -86,7 +99,7 @@ namespace System.Data.SqlTypes
                }
                
                [MonoTODO]
-               void IXmlSerializable.ReadXml (XmlReader reader)
+               void IXmlSerializable.ReadXml (XmlReader r)
                {
                        throw new NotImplementedException ();
                }