Files
mono/mcs/class/System.Web.Services/System.Web.Services.Protocols/HttpMethodAttribute.cs
T
2004-02-05 12:29:43 +00:00

51 lines
1017 B
C#

//
// System.Web.Services.Protocols.HttpMethodAttribute.cs
//
// Author:
// Tim Coleman ([email protected])
//
// Copyright (C) Tim Coleman, 2002
//
namespace System.Web.Services.Protocols {
[AttributeUsage (AttributeTargets.Method, Inherited = true)]
public sealed class HttpMethodAttribute : Attribute {
#region Fields
Type parameterFormatter;
Type returnFormatter;
#endregion
#region Constructors
public HttpMethodAttribute ()
{
}
public HttpMethodAttribute (Type returnFormatter, Type parameterFormatter)
: this ()
{
this.parameterFormatter = parameterFormatter;
this.returnFormatter = returnFormatter;
}
#endregion // Constructors
#region Properties
public Type ParameterFormatter {
get { return parameterFormatter; }
set { parameterFormatter = value; }
}
public Type ReturnFormatter {
get { return returnFormatter; }
set { returnFormatter = value; }
}
#endregion // Properties
}
}