X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FSystem.Web.Services%2FSystem.Web.Services.Description%2FBinding.cs;h=19798a06af15b28a0fd10e6553bafe4a79bea744;hb=bf5947a0fd2b523c30833605ee69b2b041aa43f4;hp=ed48f47fbdab4081032123e181ddee8121071663;hpb=b39d5edf62fb3908e10647e1a7e60dadeb88b2be;p=mono.git diff --git a/mcs/class/System.Web.Services/System.Web.Services.Description/Binding.cs b/mcs/class/System.Web.Services/System.Web.Services.Description/Binding.cs index ed48f47fbda..19798a06af1 100644 --- a/mcs/class/System.Web.Services/System.Web.Services.Description/Binding.cs +++ b/mcs/class/System.Web.Services/System.Web.Services.Description/Binding.cs @@ -1,11 +1,11 @@ -// -// System.Web.Services.Description.Binding.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// +// +// System.Web.Services.Description.Binding.cs +// +// Author: +// Tim Coleman (tim@timcoleman.com) +// +// Copyright (C) Tim Coleman, 2002 +// // // Permission is hereby granted, free of charge, to any person obtaining @@ -27,92 +27,73 @@ // 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 Binding : -#if NET_2_0 - NamedItem -#else - DocumentableItem -#endif - { - - #region Fields - - ServiceDescriptionFormatExtensionCollection extensions; -#if !NET_2_0 - string name; -#endif - OperationBindingCollection operations; - ServiceDescription serviceDescription; - XmlQualifiedName type; - - #endregion // Fields - - #region Constructors - - public Binding () - { - extensions = new ServiceDescriptionFormatExtensionCollection (this); -#if !NET_2_0 - name = String.Empty; -#endif - operations = new OperationBindingCollection (this); - serviceDescription = null; - type = XmlQualifiedName.Empty; - } - - #endregion // Constructors - - #region Properties - - [XmlIgnore] + +using System.Web.Services.Configuration; +using System.Xml; +using System.Xml.Serialization; + +namespace System.Web.Services.Description +{ + [XmlFormatExtensionPoint ("Extensions")] + public sealed class Binding : + NamedItem + { + + #region Fields + + ServiceDescriptionFormatExtensionCollection extensions; + OperationBindingCollection operations; + ServiceDescription serviceDescription; + XmlQualifiedName type; + + #endregion // Fields + + #region Constructors + + public Binding () + { + extensions = new ServiceDescriptionFormatExtensionCollection (this); + operations = new OperationBindingCollection (this); + serviceDescription = null; + type = XmlQualifiedName.Empty; + } + + #endregion // Constructors + + #region Properties + + [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 - - [XmlElement ("operation")] - public OperationBindingCollection Operations { - get { return operations; } - } - - public ServiceDescription ServiceDescription { - get { return serviceDescription; } - } - - [XmlAttribute ("type")] - public XmlQualifiedName Type { - get { return type; } - set { type = value; } - } - - #endregion // Properties - - #region Methods - - internal void SetParent (ServiceDescription serviceDescription) - { - this.serviceDescription = serviceDescription; - } - - #endregion // Methods - } -} + ServiceDescriptionFormatExtensionCollection Extensions { + get { return extensions; } + } + + + [XmlElement ("operation")] + public OperationBindingCollection Operations { + get { return operations; } + } + + public ServiceDescription ServiceDescription { + get { return serviceDescription; } + } + + [XmlAttribute ("type")] + public XmlQualifiedName Type { + get { return type; } + set { type = value; } + } + + #endregion // Properties + + #region Methods + + internal void SetParent (ServiceDescription serviceDescription) + { + this.serviceDescription = serviceDescription; + } + + #endregion // Methods + } +}