Files
mono/mcs/class/System.Web.Services/System.Web.Services.Description/ServiceDescriptionFormatExtension.cs
T
Lluis Sanchez fe757a8636 * Binding.cs, Import.cs, Message.cs, MessageBinding.cs, MessagePart.cs,
Operation.cs, OperationBinding.cs, OperationMessage.cs, Port.cs,
	  PortType.cs, Service.cs: Added XmlIgnore attributes to properties
	  referencing parent objects.
	* OperationMessageCollection.cs: Fixed wrong OnInsert method
	* ServiceDescription.cs: Removed unneeded methods in
	  ServiceDescriptionSerializer.

svn path=/trunk/mcs/; revision=16521
2003-07-22 09:55:23 +00:00

67 lines
1.2 KiB
C#

//
// System.Web.Services.Description.ServiceDescriptionFormatExtension.cs
//
// Author:
// Tim Coleman ([email protected])
//
// Copyright (C) Tim Coleman, 2002
//
using System.ComponentModel;
using System.Xml.Serialization;
namespace System.Web.Services.Description {
public abstract class ServiceDescriptionFormatExtension {
#region Fields
bool handled;
object parent;
bool required;
#endregion // Fields
#region Constructors
protected ServiceDescriptionFormatExtension ()
{
handled = false;
parent = null;
required = false;
}
#endregion // Constructors
#region Properties
[XmlIgnore]
public bool Handled {
get { return handled; }
set { handled = value; }
}
[XmlIgnore]
public object Parent {
get { return parent; }
}
[DefaultValue (false)]
[XmlAttribute ("required", Namespace = "http://schemas.xmlsoap.org/wsdl/")]
public bool Required {
get { return required; }
set { required = value; }
}
#endregion // Properties
#region Methods
internal void SetParent (object value)
{
parent = value;
}
#endregion // Methods
}
}