diff options
Diffstat (limited to 'mcs/class/System/System.ComponentModel.Design.Serialization/ContextStack.cs')
-rw-r--r-- | mcs/class/System/System.ComponentModel.Design.Serialization/ContextStack.cs | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/mcs/class/System/System.ComponentModel.Design.Serialization/ContextStack.cs b/mcs/class/System/System.ComponentModel.Design.Serialization/ContextStack.cs new file mode 100644 index 00000000000..291123969e9 --- /dev/null +++ b/mcs/class/System/System.ComponentModel.Design.Serialization/ContextStack.cs @@ -0,0 +1,45 @@ +// System.ComponentModel.Design.Serialization.ContextStack.cs +// +// Author: +// Alejandro Sánchez Acosta <raciel@gnome.org> +// +// (C) Alejandro Sánchez Acosta +// + +using System.Collections; +using System.Web.UI.Design; + +namespace System.ComponentModel.Design.Serialization +{ + public sealed class ContextStack + { + public ArrayList list; + + public ContextStack () { + list = new ArrayList (); + } + + public object Current { + get { + if (list.Count == 0) return null; + return list [list.Count - 1]; + } + + set { + list.Add (value); + } + } + + [MonoTODO] + public object this[Type type] { + get { throw new NotImplementedException ();} + set { throw new NotImplementedException ();} + } + + [MonoTODO] + public object this[int level] { + get { throw new NotImplementedException ();} + set { throw new NotImplementedException ();} + } + } +} |