source: xmlrpcnet/trunk/fuentes/src/XmlRpcParameterAttribute.cs @ 379

Last change on this file since 379 was 379, checked in by hectorgh, 5 years ago

adding project files

File size: 1.8 KB
Line 
1/*
2XML-RPC.NET library
3Copyright (c) 2001-2006, Charles Cook <charlescook@cookcomputing.com>
4
5Permission is hereby granted, free of charge, to any person
6obtaining a copy of this software and associated documentation
7files (the "Software"), to deal in the Software without restriction,
8including without limitation the rights to use, copy, modify, merge,
9publish, distribute, sublicense, and/or sell copies of the Software,
10and to permit persons to whom the Software is furnished to do so,
11subject to the following conditions:
12
13The above copyright notice and this permission notice shall be
14included in all copies or substantial portions of the Software.
15
16THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
18OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
20HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
21WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23DEALINGS IN THE SOFTWARE.
24*/
25
26namespace CookComputing.XmlRpc
27{
28  using System;
29
30  [AttributeUsage(AttributeTargets.Parameter)]
31  public class XmlRpcParameterAttribute : Attribute
32  {
33    public XmlRpcParameterAttribute()
34    {
35    }
36   
37    public XmlRpcParameterAttribute(string name)
38    {
39      this.name = name;
40    }
41
42    public string Name
43    {
44      get { return name; }
45    }
46   
47    public string Description
48    {
49      get { return description; }
50      set { description = value; }
51    }
52   
53    public override string ToString()
54    {
55      string value = "Description : " + description;
56      return value;
57    }
58   
59    private string name = "";
60    private string description = "";
61  }
62}
Note: See TracBrowser for help on using the repository browser.