Method Match
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
columnsIEnumerable<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
columnsis null.