SessionDictionary.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. //
  2. // System.Web.SessionState.SessionDictionary
  3. //
  4. // Authors:
  5. // Gonzalo Paniagua Javier ([email protected])
  6. //
  7. // (C) 2002 Ximian, Inc (http://www.ximian.com)
  8. //
  9. using System;
  10. using System.IO;
  11. using System.Collections.Specialized;
  12. namespace System.Web.SessionState {
  13. internal class SessionDictionary : NameObjectCollectionBase
  14. {
  15. private bool _dirty;
  16. static SessionDictionary ()
  17. {
  18. }
  19. public SessionDictionary ()
  20. {
  21. }
  22. void Clear ()
  23. {
  24. _dirty = true;
  25. BaseClear ();
  26. }
  27. [MonoTODO]
  28. static SessionDictionary Deserialize (BinaryReader r)
  29. {
  30. throw new NotImplementedException ();
  31. }
  32. public string GetKey (int index)
  33. {
  34. return BaseGetKey (index);
  35. }
  36. [MonoTODO]
  37. static bool IsInmutable (object o)
  38. {
  39. throw new NotImplementedException ();
  40. }
  41. void Remove (string s)
  42. {
  43. BaseRemove (s);
  44. _dirty = true;
  45. }
  46. void RemoveAt (int index)
  47. {
  48. BaseRemoveAt (index);
  49. _dirty = true;
  50. }
  51. [MonoTODO]
  52. void Serialize(BinaryWriter w)
  53. {
  54. throw new NotImplementedException ();
  55. }
  56. bool Dirty
  57. {
  58. get { return _dirty; }
  59. set { _dirty = value; }
  60. }
  61. internal object this [string s]
  62. {
  63. get { return BaseGet (s); }
  64. set {
  65. BaseSet (s, value);
  66. _dirty = true;
  67. }
  68. }
  69. public object this [int index]
  70. {
  71. get { return BaseGet (index); }
  72. set {
  73. BaseSet (index, value);
  74. _dirty = true;
  75. }
  76. }
  77. }
  78. }