2006-11-02 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / mcs / class / System.Web.Services / System.Web.Services.Description / ServiceDescription.cs
index 62473a8241f4d6fd51331bce6ed549734380e1b2..66729c338ab7dccfc43d4f12f03793533a8aac6a 100644 (file)
@@ -38,11 +38,17 @@ using System.Xml;
 using System.Xml.Schema;\r
 using System.Xml.Serialization;\r
 \r
-namespace System.Web.Services.Description {\r
+namespace System.Web.Services.Description\r
+{\r
        [XmlFormatExtensionPoint ("Extensions")]\r
        [XmlRoot ("definitions", Namespace = "http://schemas.xmlsoap.org/wsdl/")]\r
-       public sealed class ServiceDescription : DocumentableItem {\r
-\r
+       public sealed class ServiceDescription :\r
+#if NET_2_0\r
+               NamedItem\r
+#else\r
+               DocumentableItem \r
+#endif\r
+       {\r
                #region Fields\r
 \r
                public const string Namespace = "http://schemas.xmlsoap.org/wsdl/";\r
@@ -51,7 +57,9 @@ namespace System.Web.Services.Description {
                ServiceDescriptionFormatExtensionCollection extensions;\r
                ImportCollection imports;\r
                MessageCollection messages;\r
+#if !NET_2_0\r
                string name;\r
+#endif\r
                PortTypeCollection portTypes;\r
                string retrievalUrl;\r
                ServiceDescriptionCollection serviceDescriptions;\r
@@ -75,7 +83,9 @@ namespace System.Web.Services.Description {
                        extensions = new ServiceDescriptionFormatExtensionCollection (this);\r
                        imports = new ImportCollection (this);\r
                        messages = new MessageCollection (this);\r
+#if !NET_2_0\r
                        name = String.Empty;            \r
+#endif\r
                        portTypes = new PortTypeCollection (this);\r
 \r
                        serviceDescriptions = null;\r
@@ -119,11 +129,13 @@ namespace System.Web.Services.Description {
                        get { return extensions; }\r
                }\r
 \r
+#if !NET_2_0\r
                [XmlAttribute ("name", DataType = "NMTOKEN")]   \r
                public string Name {\r
                        get { return name; }\r
                        set { name = value; }\r
                }\r
+#endif\r
 \r
                [XmlIgnore]     \r
                public string RetrievalUrl {\r