ContextStack.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // System.ComponentModel.Design.Serialization.ContextStack.cs
  2. //
  3. // Author:
  4. // Alejandro Sánchez Acosta <[email protected]>
  5. //
  6. // (C) Alejandro Sánchez Acosta
  7. //
  8. using System.Collections;
  9. using System.Web.UI.Design;
  10. namespace System.ComponentModel.Design.Serialization
  11. {
  12. public sealed class ContextStack
  13. {
  14. public ArrayList list;
  15. public ContextStack () {
  16. list = new ArrayList ();
  17. }
  18. public object Current {
  19. get {
  20. if (list.Count == 0) return null;
  21. return list [list.Count - 1];
  22. }
  23. set {
  24. list.Add (value);
  25. }
  26. }
  27. [MonoTODO]
  28. public object this[Type type] {
  29. get { throw new NotImplementedException ();}
  30. set { throw new NotImplementedException ();}
  31. }
  32. [MonoTODO]
  33. public object this[int level] {
  34. get { throw new NotImplementedException ();}
  35. set { throw new NotImplementedException ();}
  36. }
  37. }
  38. }