private void AssertContainerType(LuaContainerType type) { if (Peek() != type) { throw new LuaTableWriterException("Invalid writer state. Expect container type:" + type, CurrentPath); } }
public LuaContainerContext(LuaContainerType containerType) { ContainerType = containerType; Key = null; BoxedKey = null; KeyIsExpression = true; CurrentIndex = 1; }
private void Push(LuaContainerType type) { contextStack.Add(currentContext); currentContext = new LuaContainerContext(type); }