blob: a98ec11202252d56bf09298a18f02210a1575226 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
//
// System.Web.Services.Protocols.DiscoveryClientReferenceCollection.cs
//
// Author:
// Dave Bettin (javabettin@yahoo.com)
// Tim Coleman (tim@timcoleman.com)
//
// Copyright (C) Dave Bettin, 2002
// Copyright (C) Tim Coleman, 2002
//
using System.Collections;
namespace System.Web.Services.Discovery {
public sealed class DiscoveryClientReferenceCollection : DictionaryBase {
#region Constructors
public DiscoveryClientReferenceCollection ()
: base ()
{
}
#endregion // Constructors
#region Properties
public DiscoveryReference this [string url] {
get { return (DiscoveryReference) InnerHashtable [url]; }
set { InnerHashtable [url] = value; }
}
public ICollection Keys {
get { return InnerHashtable.Keys; }
}
public ICollection Values {
get { return InnerHashtable.Values; }
}
#endregion // Properties
#region Methods
public void Add (DiscoveryReference value)
{
Add (value.Url, value);
}
public void Add (string url, DiscoveryReference value)
{
InnerHashtable [url] = value;
}
public bool Contains (string url)
{
return InnerHashtable.Contains (url);
}
public void Remove (string url)
{
InnerHashtable.Remove (url);
}
#endregion // Methods
}
}
|