src/Markdig/Renderers/RendererBase.cs
/// <summary>
/// Writes the children of the specified <see cref="ContainerInline"/>.
/// </summary>
/// <param name="containerInline">The container inline.</param>
Writes the children of the specified .
Writes the children of the specified .
public void WriteChildren(ContainerInline containerInline)
        {
            if (containerInline is null)
            {
                return;
            }
            ThrowHelper.CheckDepthLimit(childrenDepth++);
            bool saveIsFirstInContainer = IsFirstInContainer;
            bool saveIsLastInContainer = IsLastInContainer;
            bool isFirst = true;
            var inline = containerInline.FirstChild;
            while (inline != null)
            {
                IsFirstInContainer = isFirst;
                IsLastInContainer = inline.NextSibling is null;
                Write(inline);
                inline = inline.NextSibling;
                isFirst = false;
            }
            IsFirstInContainer = saveIsFirstInContainer;
            IsLastInContainer = saveIsLastInContainer;
            childrenDepth--;
        }
public void WriteChildren ( ContainerInline containerInline ) { if ( containerInline is null ) { return ; } ThrowHelper . CheckDepthLimit ( childrenDepth ++ ) ; bool saveIsFirstInContainer = IsFirstInContainer ; bool saveIsLastInContainer = IsLastInContainer ; bool isFirst = true ; var inline = containerInline . FirstChild ; while ( inline != null ) { IsFirstInContainer = isFirst ; IsLastInContainer = inline . NextSibling is null ; Write ( inline ) ; inline = inline . NextSibling ; isFirst = false ; } IsFirstInContainer = saveIsFirstInContainer ; IsLastInContainer = saveIsLastInContainer ; childrenDepth -- ; }
Writes the children of the specified .
Writes the children of the specified .
containerInline
ContainerInline
The container inline.
The container inline .