2 // System.Web.Services.Protocols.HttpMethodAttribute.cs
\r
5 // Tim Coleman (tim@timcoleman.com)
\r
7 // Copyright (C) Tim Coleman, 2002
\r
10 namespace System.Web.Services.Protocols {
\r
11 [AttributeUsage (AttributeTargets.Method)]
\r
12 public sealed class HttpMethodAttribute : Attribute {
\r
16 Type parameterFormatter;
\r
17 Type returnFormatter;
\r
21 #region Constructors
\r
23 public HttpMethodAttribute ()
\r
27 public HttpMethodAttribute (Type returnFormatter, Type parameterFormatter)
\r
30 this.parameterFormatter = parameterFormatter;
\r
31 this.returnFormatter = returnFormatter;
\r
34 #endregion // Constructors
\r
38 public Type ParameterFormatter {
\r
39 get { return parameterFormatter; }
\r
40 set { parameterFormatter = value; }
\r
43 public Type ReturnFormatter {
\r
44 get { return returnFormatter; }
\r
45 set { returnFormatter = value; }
\r
48 #endregion // Properties
\r