Table of Contents

Method FromDictionaries

Namespace
DocWright.MailMerge
Assembly
DocWright.MailMerge.dll

FromDictionaries(IEnumerable<IDictionary<string, object?>>)

Opens a reader over dictionary rows.

public static IMergeDataReader FromDictionaries(IEnumerable<IDictionary<string, object?>> rows)

Parameters

rows IEnumerable<IDictionary<string, object>>

The rows. Enumerated once, lazily.

Returns

IMergeDataReader

The reader, positioned before the first record.

Remarks

A value that is itself a sequence of dictionaries becomes a child collection, so a nested «TableStart:Items» region works without any extra registration.

Exceptions

ArgumentNullException

rows is null.