Пример #1
0
        internal override void Emit(Emitter emitter)
        {
            base.Emit(emitter);

            StartChildren(emitter);
            for (int i = 0; i < m_children.Count; i++)
            {
                YAMLNode child = m_children[i];
                StartChild(emitter, child);
                child.Emit(emitter);
                EndChild(emitter, child);
            }
            EndChildren(emitter);
        }
Пример #2
0
        internal override void Emit(Emitter emitter)
        {
            base.Emit(emitter);

            StartChildren(emitter);
            foreach (var kvp in m_children)
            {
                YAMLNode key   = kvp.Key;
                YAMLNode value = kvp.Value;

                key.Emit(emitter);
                StartTransition(emitter, value);
                value.Emit(emitter);
                EndTransition(emitter, value);
            }
            EndChildren(emitter);
        }