mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 03:51:19 -10:00
* System.Web/HttpContext.cs: reformatted. * System.Web/HttpStaticObjectsCollection.cs: implemented GetEnumertor, CopyTo and the indexer. * System.Web.Compilation/PageCompiler.cs: fixed compilation. * System.Web.SessionState/HttpSessionState.cs: IsAbandoned is internal. * System.Web.SessionState/SessionDictionary.cs: scope fixes. * System.Web.SessionState/SessionStateModule.cs: added events. svn path=/trunk/mcs/; revision=6730
94 lines
1.3 KiB
C#
94 lines
1.3 KiB
C#
//
|
|
// System.Web.SessionState.SessionDictionary
|
|
//
|
|
// Authors:
|
|
// Gonzalo Paniagua Javier ([email protected])
|
|
//
|
|
// (C) 2002 Ximian, Inc (http://www.ximian.com)
|
|
//
|
|
using System;
|
|
using System.IO;
|
|
using System.Collections.Specialized;
|
|
|
|
namespace System.Web.SessionState {
|
|
internal class SessionDictionary : NameObjectCollectionBase
|
|
{
|
|
private bool _dirty;
|
|
|
|
static SessionDictionary ()
|
|
{
|
|
}
|
|
|
|
public SessionDictionary ()
|
|
{
|
|
}
|
|
|
|
void Clear ()
|
|
{
|
|
_dirty = true;
|
|
BaseClear ();
|
|
}
|
|
|
|
[MonoTODO]
|
|
static SessionDictionary Deserialize (BinaryReader r)
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
public string GetKey (int index)
|
|
{
|
|
return BaseGetKey (index);
|
|
}
|
|
|
|
[MonoTODO]
|
|
static bool IsInmutable (object o)
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
void Remove (string s)
|
|
{
|
|
BaseRemove (s);
|
|
_dirty = true;
|
|
}
|
|
|
|
void RemoveAt (int index)
|
|
{
|
|
BaseRemoveAt (index);
|
|
_dirty = true;
|
|
}
|
|
|
|
[MonoTODO]
|
|
void Serialize(BinaryWriter w)
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
bool Dirty
|
|
{
|
|
get { return _dirty; }
|
|
set { _dirty = value; }
|
|
}
|
|
|
|
internal object this [string s]
|
|
{
|
|
get { return BaseGet (s); }
|
|
set {
|
|
BaseSet (s, value);
|
|
_dirty = true;
|
|
}
|
|
}
|
|
|
|
public object this [int index]
|
|
{
|
|
get { return BaseGet (index); }
|
|
set {
|
|
BaseSet (index, value);
|
|
_dirty = true;
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|