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