DiscoveryClientDocumentCollection.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. //
  2. // System.Web.Services.Discovery.DiscoveryClientDocumentCollection.cs
  3. //
  4. // Author:
  5. // Dave Bettin ([email protected])
  6. // Tim Coleman ([email protected])
  7. //
  8. // Copyright (C) Dave Bettin, 2002
  9. // Copyright (C) Tim Coleman, 2002
  10. //
  11. using System.Collections;
  12. namespace System.Web.Services.Discovery {
  13. public sealed class DiscoveryClientDocumentCollection : DictionaryBase {
  14. #region Constructors
  15. public DiscoveryClientDocumentCollection ()
  16. : base ()
  17. {
  18. }
  19. #endregion // Constructors
  20. #region Properties
  21. public object this [string url] {
  22. get { return InnerHashtable [url]; }
  23. set {
  24. if (url == null)
  25. throw new ArgumentNullException ();
  26. InnerHashtable [url] = value;
  27. }
  28. }
  29. public ICollection Keys {
  30. get { return InnerHashtable.Keys; }
  31. }
  32. public ICollection Values {
  33. get { return InnerHashtable.Values; }
  34. }
  35. #endregion // Properties
  36. #region Methods
  37. public void Add (string url, object value)
  38. {
  39. InnerHashtable [url] = value;
  40. }
  41. public bool Contains (string url)
  42. {
  43. return InnerHashtable.Contains (url);
  44. }
  45. public void Remove (string url)
  46. {
  47. InnerHashtable.Remove (url);
  48. }
  49. #endregion // Methods
  50. }
  51. }