src/Lists/MarkdownList.cs
/// <summary>
/// Inserts a new top-level block into a given position in the list.
/// This creates a new top-level entry in the list.
/// </summary>
/// <param name="index">Index to insert at</param>
/// <param name="item">Item to insert</param>
Inserts a new top-level block into a given position in the list.
This creates a new top-level entry in the list.
Inserts a new top - level block into a given position in the list . This creates a new top - level entry in the list .
public void Insert(int index, MarkdownBlock item)
        {
            if (item == null) throw new ArgumentNullException(nameof(item));
            if (index <= 0) throw new ArgumentOutOfRangeException(nameof(index));
            Children.Insert(index, new List<MarkdownBlock> {item});
        }
public void Insert ( int index , MarkdownBlock item ) { if ( item == null ) throw new ArgumentNullException ( nameof ( item ) ) ; if ( index <= 0 ) throw new ArgumentOutOfRangeException ( nameof ( index ) ) ; Children . Insert ( index , new List < MarkdownBlock > { item } ) ; }
Inserts a new top-level block into a given position in the list.
Inserts a new top - level block into a given position in the list .
index
int
Index to insert at
Index to insert at
item
MarkdownBlock
Item to insert
Item to insert