-// \r
-// System.Web.Services.Description.Service.cs\r
-//\r
-// Author:\r
-// Tim Coleman (tim@timcoleman.com)\r
-//\r
-// Copyright (C) Tim Coleman, 2002\r
-//\r
+//
+// System.Web.Services.Description.Service.cs
+//
+// Author:
+// Tim Coleman (tim@timcoleman.com)
+//
+// Copyright (C) Tim Coleman, 2002
+//
//
// Permission is hereby granted, free of charge, to any person obtaining
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-\r
-using System.Xml.Serialization;\r
+
+using System.Xml.Serialization;
using System.Web.Services.Configuration;
-\r
-namespace System.Web.Services.Description\r
-{\r
-#if NET_2_0\r
- [XmlFormatExtensionPoint ("Extensions")]\r
-#endif\r
- public sealed class Service :\r
-#if NET_2_0\r
- NamedItem\r
-#else\r
- DocumentableItem \r
-#endif\r
- {\r
- #region Fields\r
-\r
- ServiceDescriptionFormatExtensionCollection extensions;\r
-#if !NET_2_0\r
- string name;\r
-#endif\r
- PortCollection ports;\r
- ServiceDescription serviceDescription;\r
-\r
- #endregion // Fields\r
-\r
- #region Constructors\r
- \r
- public Service ()\r
- {\r
- extensions = new ServiceDescriptionFormatExtensionCollection (this);\r
-#if !NET_2_0\r
- name = String.Empty;\r
-#endif\r
- ports = new PortCollection (this);\r
- serviceDescription = null;\r
- }\r
- \r
- #endregion // Constructors\r
-\r
- #region Properties\r
-\r
- [XmlIgnore]\r
+
+namespace System.Web.Services.Description
+{
+ [XmlFormatExtensionPoint ("Extensions")]
+ public sealed class Service :
+ NamedItem
+ {
+ #region Fields
+
+ ServiceDescriptionFormatExtensionCollection extensions;
+ PortCollection ports;
+ ServiceDescription serviceDescription;
+
+ #endregion // Fields
+
+ #region Constructors
+
+ public Service ()
+ {
+ extensions = new ServiceDescriptionFormatExtensionCollection (this);
+ ports = new PortCollection (this);
+ serviceDescription = null;
+ }
+
+ #endregion // Constructors
+
+ #region Properties
+
+ [XmlIgnore]
public
-#if NET_2_0
override
-#endif
- 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 ("port")] \r
- public PortCollection Ports {\r
- get { return ports; }\r
- }\r
-\r
-// [XmlIgnore]\r
- public ServiceDescription ServiceDescription {\r
- get { return serviceDescription; }\r
- }\r
-\r
- #endregion // Properties\r
-\r
- #region Methods\r
-\r
- internal void SetParent (ServiceDescription serviceDescription) \r
- {\r
- this.serviceDescription = serviceDescription;\r
- }\r
-\r
- #endregion // Methods\r
- }\r
-}\r
+ ServiceDescriptionFormatExtensionCollection Extensions {
+ get { return extensions; }
+ }
+
+
+ [XmlElement ("port")]
+ public PortCollection Ports {
+ get { return ports; }
+ }
+
+// [XmlIgnore]
+ public ServiceDescription ServiceDescription {
+ get { return serviceDescription; }
+ }
+
+ #endregion // Properties
+
+ #region Methods
+
+ internal void SetParent (ServiceDescription serviceDescription)
+ {
+ this.serviceDescription = serviceDescription;
+ }
+
+ #endregion // Methods
+ }
+}