Statistics
| Branch: | Revision:

root / trunk / hammock / src / net35 / Hammock / Web / WebParameterCollection.cs @ 0eea575a

History | View | Annotate | Download (910 Bytes)

1
using System.Collections.Generic;
2
#if !SILVERLIGHT
3
using System.Collections.Specialized;
4
#else
5
using Hammock.Silverlight.Compat;
6
#endif
7

    
8
namespace Hammock.Web
9
{
10
    public class WebParameterCollection : WebPairCollection
11
    {
12
        public WebParameterCollection(IEnumerable<WebPair> parameters)
13
            : base(parameters)
14
        {
15

    
16
        }
17

    
18
        public WebParameterCollection(NameValueCollection collection) : base(collection)
19
        {
20
        }
21

    
22
        public WebParameterCollection()
23
        {
24
        }
25

    
26
        public WebParameterCollection(int capacity) : base(capacity)
27
        {
28
        }
29

    
30
        public WebParameterCollection(IDictionary<string, string> collection) : base(collection)
31
        {
32

    
33
        }
34

    
35
        public override void Add(string name, string value)
36
        {
37
            var parameter = new WebParameter(name, value);
38
            base.Add(parameter);
39
        }
40
    }
41
}