* Mono.Posix.dll.sources: Rename Mono.Posix to Mono.Unix.
[mono.git] / mcs / class / System.Web.Services / System.Web.Services.Description / Binding.cs
index 1b078c40e84686980b9e33c396d0e9ed8d8afbf4..82ac7e18473c4f40c877a30b073a2e70be8cb9f7 100644 (file)
@@ -32,14 +32,23 @@ using System.Web.Services.Configuration;
 using System.Xml;\r
 using System.Xml.Serialization;\r
 \r
-namespace System.Web.Services.Description {\r
+namespace System.Web.Services.Description \r
+{\r
        [XmlFormatExtensionPoint ("Extensions")]\r
-       public sealed class Binding : DocumentableItem {\r
+       public sealed class Binding :\r
+#if NET_2_0\r
+               NamedItem\r
+#else\r
+               DocumentableItem \r
+#endif\r
+       {\r
 \r
                #region Fields\r
 \r
                ServiceDescriptionFormatExtensionCollection extensions;\r
+#if !NET_2_0\r
                string name;\r
+#endif\r
                OperationBindingCollection operations;\r
                ServiceDescription serviceDescription;\r
                XmlQualifiedName type;\r
@@ -51,7 +60,9 @@ namespace System.Web.Services.Description {
                public Binding ()\r
                {\r
                        extensions = new ServiceDescriptionFormatExtensionCollection (this);\r
+#if !NET_2_0\r
                        name = String.Empty;\r
+#endif\r
                        operations = new OperationBindingCollection (this);\r
                        serviceDescription = null;\r
                        type = XmlQualifiedName.Empty;\r
@@ -61,23 +72,24 @@ namespace System.Web.Services.Description {
 \r
                #region Properties\r
 \r
-//             [XmlIgnore]\r
+               [XmlIgnore]\r
                public ServiceDescriptionFormatExtensionCollection Extensions {         \r
                        get { return extensions; }\r
                }\r
 \r
+#if !NET_2_0\r
                [XmlAttribute ("name", DataType = "NCName")]    \r
                public string Name {\r
                        get { return name; }\r
                        set { name = value; }\r
                }\r
+#endif\r
 \r
                [XmlElement ("operation")]\r
                public OperationBindingCollection Operations {\r
                        get { return operations; }\r
                }\r
 \r
-               [XmlIgnore]\r
                public ServiceDescription ServiceDescription {\r
                        get { return serviceDescription; }\r
                }\r