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
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
\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