mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-16 17:10:20 -10:00
45 lines
1.2 KiB
C#
45 lines
1.2 KiB
C#
// System.ComponentModel.Design.Serialization.ContextStack.cs
|
|
//
|
|
// Author:
|
|
// Alejandro Sánchez Acosta <[email protected]>
|
|
//
|
|
// (C) Alejandro Sánchez Acosta
|
|
//
|
|
|
|
using System.Collections;
|
|
|
|
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 ();}
|
|
}
|
|
}
|
|
}
|