Table of Contents

Method Match

Namespace
DocWright.MailMerge
Assembly
DocWright.MailMerge.dll

Match(IEnumerable<string>)

Matches a list's columns to the address fields, as Word does: each field takes the first column of one of its names.

public static IReadOnlyDictionary<string, string> Match(IEnumerable<string> columns)

Parameters

columns IEnumerable<string>

The list's column names (as the list names them, or as a merge field names them).

Returns

IReadOnlyDictionary<string, string>

Each matched address field and its column; a field no column matches is left out.

Exceptions

ArgumentNullException

columns is null.