X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FSystem.Web.Services%2FSystem.Web.Services.Description%2FPort.cs;h=c647c06d6be9870eba1ff0e2b085ce3d3e0b79da;hb=2670761ee7f20ecfb4b49610394aca0f44aa0738;hp=07ef9dbea1c94ceaa595f608cd3e56c370335983;hpb=d2c8e83da7cce00214378e84c9054933c643d717;p=mono.git diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/Port.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/Port.cs index 07ef9dbea1c..c647c06d6be 100644 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/Port.cs +++ b/mcs/class/System.Web.Services/System.Web.Services.Description/Port.cs @@ -1,11 +1,11 @@ -// -// System.Web.Services.Description.Port.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// +// +// System.Web.Services.Description.Port.cs +// +// Author: +// Tim Coleman (tim@timcoleman.com) +// +// Copyright (C) Tim Coleman, 2002 +// // // Permission is hereby granted, free of charge, to any person obtaining @@ -27,81 +27,85 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // - -using System.Web.Services.Configuration; -using System.Xml; -using System.Xml.Serialization; - -namespace System.Web.Services.Description -{ - [XmlFormatExtensionPoint ("Extensions")] - public sealed class Port : -#if NET_2_0 - NamedItem -#else - DocumentableItem -#endif - { - #region Fields - - XmlQualifiedName binding; - ServiceDescriptionFormatExtensionCollection extensions; -#if !NET_2_0 - string name; -#endif - Service service; - - #endregion // Fields - - #region Constructors - - public Port () - { - binding = null; - extensions = new ServiceDescriptionFormatExtensionCollection (this); -#if !NET_2_0 - name = String.Empty; -#endif - service = null; - } - - #endregion // Constructors - - #region Properties - - [XmlAttribute ("binding")] - public XmlQualifiedName Binding { - get { return binding; } - set { binding = value; } - } - - [XmlIgnore] - public ServiceDescriptionFormatExtensionCollection Extensions { - get { return extensions; } - } - -#if !NET_2_0 - [XmlAttribute ("name", DataType = "NCName")] - public string Name { - get { return name; } - set { name = value; } - } -#endif - -// [XmlIgnore] - public Service Service { - get { return service; } - } - - #endregion // Properties - - #region Methods - - internal void SetParent (Service service) - { - this.service = service; - } - - #endregion - } -} + +using System.Web.Services.Configuration; +using System.Xml; +using System.Xml.Serialization; + +namespace System.Web.Services.Description +{ + [XmlFormatExtensionPoint ("Extensions")] + public sealed class Port : +#if NET_2_0 + NamedItem +#else + DocumentableItem +#endif + { + #region Fields + + XmlQualifiedName binding; + ServiceDescriptionFormatExtensionCollection extensions; +#if !NET_2_0 + string name; +#endif + Service service; + + #endregion // Fields + + #region Constructors + + public Port () + { + binding = null; + extensions = new ServiceDescriptionFormatExtensionCollection (this); +#if !NET_2_0 + name = String.Empty; +#endif + service = null; + } + + #endregion // Constructors + + #region Properties + + [XmlAttribute ("binding")] + public XmlQualifiedName Binding { + get { return binding; } + set { binding = value; } + } + + [XmlIgnore] + public +#if NET_2_0 + override +#endif + ServiceDescriptionFormatExtensionCollection Extensions { + get { return extensions; } + } + +#if !NET_2_0 + [XmlAttribute ("name", DataType = "NCName")] + public string Name { + get { return name; } + set { name = value; } + } +#endif + +// [XmlIgnore] + public Service Service { + get { return service; } + } + + #endregion // Properties + + #region Methods + + internal void SetParent (Service service) + { + this.service = service; + } + + #endregion + } +}