Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/System.Web/System.Web.UI/CssStyleCollection.cs')
-rwxr-xr-xmcs/class/System.Web/System.Web.UI/CssStyleCollection.cs48
1 files changed, 48 insertions, 0 deletions
diff --git a/mcs/class/System.Web/System.Web.UI/CssStyleCollection.cs b/mcs/class/System.Web/System.Web.UI/CssStyleCollection.cs
new file mode 100755
index 00000000000..bcf88bbc436
--- /dev/null
+++ b/mcs/class/System.Web/System.Web.UI/CssStyleCollection.cs
@@ -0,0 +1,48 @@
+//
+// System.Web.UI.CssStyleCollection.cs
+//
+// Duncan Mak (duncan@ximian.com)
+//
+// (C) Ximian, Inc.
+//
+
+using System;
+using System.Collections;
+
+namespace System.Web.UI {
+
+ public sealed class CssStyleCollection
+ {
+ Hashtable list = new Hashtable ();
+
+ public int Count {
+ get { return list.Count; }
+ }
+
+ public string this [string key] {
+
+ get { return list [key] as string; }
+
+ set { list [key] = value; }
+ }
+
+ public ICollection Keys {
+ get { return list.Keys; }
+ }
+
+ public void Add (string key, string value)
+ {
+ list.Add (key, value);
+ }
+
+ public void Clear ()
+ {
+ list.Clear ();
+ }
+
+ public void Remove (string key)
+ {
+ list.Remove (key);
+ }
+ }
+}