mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 01:41:17 -10:00
* System.Web.build: removed some more excludes. * System.Web.Hosting/AppDomainFactory.cs: * System.Web.Hosting/IAppDomainFactory.cs: * System.Web.Hosting/IISAPIRuntime.cs: * System.Web.Hosting/ISAPIRuntime.cs: make them compile. * System.Web.UI/AttributeCollection.cs: added CssStyleCollection. * System.Web.UI/CssStyleCollection.cs: use a StateBag instead of a Hashtable. Added internal .ctor. * System.Web.UI/DataBinding.cs: propertyType is a Type. Implemented Equals and GetHashCode. * System.Web.UI/DataBoundLiteralControl.cs: (LoadViewState): (SaveViewState): implemented. * System.Web.UI/Page.cs: FileDependencies is not public. * System.Web.UI/ParseChildrenAttribute.cs: give a value to Default. (GetHashCode): (Equals): (IsDefaultAttribute): implemented. svn path=/trunk/mcs/; revision=5743
57 lines
827 B
C#
Executable File
57 lines
827 B
C#
Executable File
//
|
|
// System.Web.UI.CssStyleCollection.cs
|
|
//
|
|
// Authors:
|
|
// Duncan Mak ([email protected])
|
|
// Gonzalo Paniagua ([email protected])
|
|
//
|
|
// (C) 2002 Ximian, Inc. (http://www.ximian.com)
|
|
//
|
|
|
|
using System;
|
|
using System.Collections;
|
|
|
|
namespace System.Web.UI {
|
|
|
|
public sealed class CssStyleCollection
|
|
{
|
|
private StateBag bag;
|
|
|
|
internal CssStyleCollection (StateBag bag)
|
|
{
|
|
this.bag = bag;
|
|
}
|
|
|
|
public int Count {
|
|
get { return bag.Count; }
|
|
}
|
|
|
|
public string this [string key] {
|
|
|
|
get { return bag [key] as string; }
|
|
|
|
set { bag [key] = value; }
|
|
}
|
|
|
|
public ICollection Keys {
|
|
get { return bag.Keys; }
|
|
}
|
|
|
|
public void Add (string key, string value)
|
|
{
|
|
bag.Add (key, value);
|
|
}
|
|
|
|
public void Clear ()
|
|
{
|
|
bag.Clear ();
|
|
}
|
|
|
|
public void Remove (string key)
|
|
{
|
|
bag.Remove (key);
|
|
}
|
|
}
|
|
}
|
|
|